I have cloned a remote git repository and in my local copy I now want to checkout a specific branch which already exists on the remote and I want my locally copy to track this remote. With command line git, if I wanted to checkout branch foo, I would simply use:
git checkout foo
And this would then automatically track the remote without further configuration needed.
Best Answer