GIT Cheat Sheet

From Tmplab

Revision as of 12:32, 17 October 2008 by Phil (Talk | contribs)
Jump to: navigation, search

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

Seeing files inside repository

git ls-files
git ls-tree HEAD

References

Personal tools