Difference between revisions of "GIT Cheat Sheet"
From Tmplab
(→Seeing changes) |
(→References) |
||
Line 28: | Line 28: | ||
* Another good one: http://toolmantim.com/article/2007/12/5/setting_up_a_new_rails_app_with_git | * Another good one: http://toolmantim.com/article/2007/12/5/setting_up_a_new_rails_app_with_git | ||
* Cmds vs. SVN: http://git.or.cz/course/svn.html | * Cmds vs. SVN: http://git.or.cz/course/svn.html | ||
+ | * 10 Good Examples: http://www.kernel.org/pub/software/scm/git/docs/everyday.html |
Revision as of 00:08, 2 March 2009
Contents
Basic commands
Creating
git init
Adding files
git add <filename>
or to commit all files in current directory:
git add .
Committing changes
git commit -m <message>
Seeing changes
git log
Tagging
Adding a tag
git tag <tagname> -m "Comment about this tag"
Listing tags with comments
git tag -n
Seeing files inside repository
git ls-files git ls-tree HEAD
References
- Good guide: http://www.sourcemage.org/Git_Guide
- Another good one: http://toolmantim.com/article/2007/12/5/setting_up_a_new_rails_app_with_git
- Cmds vs. SVN: http://git.or.cz/course/svn.html
- 10 Good Examples: http://www.kernel.org/pub/software/scm/git/docs/everyday.html