GIT Cheat Sheet

From Tmplab

(Difference between revisions)
Jump to: navigation, search
(Seeing changes)
Line 28: Line 28:
* Another good one:
* Another good one:
* Cmds vs. SVN:
* Cmds vs. SVN:
* 10 Good Examples:

Revision as of 23:08, 1 March 2009


Basic commands


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


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


Personal tools