I read 'http://gitready.com/intermediate/2009/02/13/list-remote-branches.html' . I am using git 1.6.3.3. My question is how can I check out a local branch which track a remote branch 'origin/2-2-stable'? In other words, when I push, I will push to 'origin/2-2-stable' instead of 'master'?
$ git branch * master $ git branch -a * master origin/1-2-stable origin/2-0-stable origin/2-1-stable origin/2-2-stable origin/3-0-unstable origin/HEAD origin/master $ git branch -r origin/1-2-stable origin/2-0-stable origin/2-1-stable origin/2-2-stable origin/3-0-unstable origin/HEAD origin/master