title: How do I get the latest version of a branch
body: <p>I cloned a remote repo, then did git pull. This works.
  Then I switch to our develop branch (not created by me)</p>
  
  <pre><code>git checkout somebranch/develop
  </code></pre>
  
  <p>Now I want to pull the latest copy of this branch:</p>
  
  <pre><code>$git status
  On branch somebranch/develop
  nothing to commit, working tree clean
  
  $git pull
  </code></pre>
  
  <p>and get:</p>
  
  <pre><code>There is no tracking information for the current branch.
  Please specify which branch you want to merge with.
  </code></pre>
  
  <p>What?  I just want it to get the latest version of this branch!</p>
  
  <pre><code>$ git remote -v
  origin  https://dev.azure.com/org/proj/_git/proj(fetch)
  origin  https://dev.azure.com/org/proj/_git/proj(push)
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>git pull origin somebranch/develop
  </code></pre>
  
  <p>But this gives:</p>
  
  <pre><code>fatal: Couldn't find remote ref somebranch/develop
  </code></pre>
  
  <p>This makes no sense - I can see it there in the <a href="https://dev.azure.com/" rel="nofollow noreferrer">https://dev.azure.com/</a> portal, and all the other devs are using it.</p>
  
  <p>I simply did clone, switched to a branch, now I want to get the latest version of that branch. I have done no other commands.</p>
  
  <p>Also, when I just did "git pull", it downloaded a load of changes.</p>
  
  <p>If I do "git branch -a" I see :</p>
  
  <pre><code>remotes/origin/somebranch/develop
  
  
  $ git branch -vv 
  </code></pre>
  
  <p>gives: </p>
  
  <pre><code>somebranch/develop 7b2abd41b [origin/somebranch/develop: behind 92] V1/V2 SitePageData merge
  </code></pre>
  
  <p>The question is, how to I pull the latest version of this branch?  What is the command or set of commands to get the latest version of a branch which is not master from the azure git repo which has changes from other devs?  Or does one ALWAYS have to manually to the upstream tracking thing to ever get the latest version of a branch, in which case why does git checkout not do this for you?</p>