Seen various fixes to this problem but this is the ultimate 5 second quick fix.
open your ~/.bash_profile, if you use textmate it would be:
sudo mate ~/.bash_profile
add this line to the file:
Save & close the file and type on the terminal:
Simply blogging this for future reference and in the hope it will be useful for someone else.
To checkout a remote branch into your local use the following commands.
git clone firstname.lastname@example.org
git branch -r
Will show you all the remote branches pick the one you like…
For instance for me it would be origin/dave.
Run the following command.
git checkout --track origin/dave