Git Cookbook

Installing

Branching

Hosting

Using

Snippets

Create a repository

git init
git add -A
git commit -m "First release"

Synchronize with a remote server

git remote add origin git@remote.server.com:test.git
git push origin master

Cloning

Delete a branch

git branch -d local_branch
git push origin :remote_branch

checkout tracked remote branch

git checkout -b branch_name -t origin/branch_name

Finding what branch a commit came from

git branch --contains <commit>