Thursday, October 08, 2009

Common git operations

Clone repository via ssh

git clone dvenable@dvenable:~/git/python


Show files that have changed:

git status


See all changes to a file:

git diff HEAD^ HEAD filename


See changes for a particular commit:

git show HEAD


Show commit log for a particular file:

git log filename.py


Show diff for all changes since branch master was created:

git diff master index.html

No comments: