My git command line cheatsheet

An extension of my short term memory:

revert changes to file git checkout <filespec>
create a new local branch and switch to it git checkout -b <branch_name>
create a new local branch git branch <branch_name>
switch branch git checkout <branch_name>
commit to remote git push origin master
display remote details git remote -v
list files containing string git grep <search_text>
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in Uncategorized. Bookmark the permalink.