The remote repository contains various branches such as origin/daves_branch:
$ git branch -r origin/HEAD -> origin/master origin/daves_branch origin/master How do I switch to daves_branch in the local repository so that it tracks origin/daves_branch?
I tried:
$ git fetch origin daves_branch $ git checkout daves_branch
git fetch --all, Then to view all the branches:git branch, Then I checkout the branch:git checkout nameofnewbranchgit fetch origin discover:discover && git checkout discover