The remote repository has several branches like origin/daves_branch:
$ git branch -r
origin/HEAD -> origin/master
origin/daves_branch
origin/master
I want to switch to daves_branch in my local repo so it tracks origin/daves_branch. I tried:
git fetch origin daves_branch
git checkout daves_branch
Is this the correct way to git pull a remote branch and set it up for tracking locally? Or is there a better approach to ensure it pulls future updates smoothly?