GIT Cheat Sheet

From Tmplab
Revision as of 01:08, 2 March 2009 by Phil (talk | contribs) (References)

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