title: Sync all branches with git
body: <p>I push code from two main locations: my PC at home and my laptop at work. I use Github to store my repos.</p>
  
  <p>This is the scenario: I did some work in my PC on a repository I've been working on for some time (both in my PC and in my laptop), and ended with the following branches:</p>
  
  <pre><code>$ git branch
  * master
  * v123
  * test-b
  </code></pre>
  
  <p>which I pushed to Github. So far so good.</p>
  
  <p>Now I'm on my laptop and this is what I see <em>before attempting to pull anything</em>:</p>
  
  <pre><code>$ git branch
  * master
  * v_123
  </code></pre>
  
  <p>This is an old version of my repo in my laptop (since I've been working in my PC) where the differences are: a branch is missing (<code>test-b</code>), another one has been re-named, or equivalently deleted and re-created with a new name (ie: <code>v_123</code> is now <code>v123</code>), and lots of things have changed possibly in all branches.</p>
  
  <p>I want to sync <em>all my branches</em> into my laptop and have them correctly tracked. I've looked at two of the most up-voted questions regarding branch cloning/fetching (<a href="https://stackoverflow.com/questions/67699/clone-all-remote-branches-with-git">How to clone all remote branches in Git?</a>; <a href="https://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches">How to fetch all git branches</a>) and right now I'm a bit lost.</p>
  
  <p>Is there some easy to use <code>git sync-branch --all</code> command that can be used to sync my laptop with the latest state of the repo in Github?</p>