Tuesday 3 March 2009

Beginner Commands

Command to get help
1. $git help [command]

Commands to get started
1. $git init
2. $git add [.]
3. $git commit

Commands to survive
1. $git status
2. $git branch
3. $git checkout

Commands to boost you
1. $git reflog
...

Commands for branches
1. $git filter branch --tree-filter 'rm file' HEAD

InterBeginner commands

Commands which I love
1. $git reflog
2. $git rebase [branch-name]
3. $git rebase [branch-eg: newFeature] on [branch-eg: master]