1. git clone
e.g. git://scarlet.aura.cs.cmu.edu/openisr.git
2. git push
e.g. ssh://aarontwc@scarlet.aura.cs.cmu.edu/~aarontwc/openisr.git master
http://davitenio.wordpress.com/2008/10/08/synchronize-git-repositories-between-deskop-and-laptop/
3. git add . - this command adds the existing files in the correct directory to be commited. Basically, it specifies the files to be committed into GIT.
4. git commit -m "message to commit", (instead of just typing git commit, having the -m parameter, allows you to put meaningful text messages to commit, so that its easier for you to track your changes later.
5. git show - this command allow you to see the list of commits make, when and why
6. git pull - this command pulls the latest updates to your local repository.
Kernal.org has a comprehensive guide on GIT.
No comments:
Post a Comment