git

git cheat sheet

Here is my personal git cheat sheet.

Branches and tags

List branches local and remote

git branch -a

Make a local branch track a specific remote branch

git branch --set-upstream localbranch origin/remotebranch

push and delete remote branches

http://gitready.com/beginner/2009/02/02/push-and-delete-branches.html

Restore a deleted tag

This is stolen from Baptiste Wicht blog post Git Tip : Restore a deleted tag.

Syndicate content