GIT Cheat Sheet

From Tmplab

(Difference between revisions)
Jump to: navigation, search
Line 22: Line 22:
* Good guide:
* Good guide:
* Another good one:
* Another good one:
* Cmds vs. SVN:

Revision as of 21:00, 28 October 2008


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

Seeing files inside repository

git ls-files
git ls-tree HEAD


Personal tools