title: How do I configure git to automatically configure local branches to track for pulling?
body: <p>Say I have a local branch <code>master</code> and a remote branch <code>remote/branch_one</code>. Is there a way to give a single command to checkout a local branch that automatically tracks the remote branch without explicitly indicating the remote branch? I'm thinking of a command like this:</p>
  
  <p><code>git checkout -t -b branch_one</code></p>
  
  <p>Right now, I've tried:</p>
  
  <pre><code>git checkout -b branch_one
  git checkout -tb branch_one
  </code></pre>
  
  <p>I'd like to avoid explicitly having to say: </p>
  
  <pre><code>git branch --set-upstream branch_one origin/branch_one
  </code></pre>
  
  <p>I feel like git should be smart enough to, given a flag, connect my local branch to my remote branch without having to specify the remote branch.</p>