git clone resource.git
git branch -a
list all the local and remote branches
git checkout [remote branch]