>git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
2/ pulling new code from git:> git pull
3/ reverse code changes> git checkout -f
4/ commiting the modifications:> git commit -a
5/ undo last commits (note it is different from a revert which consists of a patch reverting some other patch)> git reset HEAD~2
6/ list branches> git branch
7/ create branch> git checkout -b my-new-branch-name master
8/ choose a branch and make it the current one:> git checkout branch
9/ Tell which branch is current> git status
10/ merging code into a branch mybranch> git checkout mybranch
> git merge anotherbranch