title: Set master branch to latest tag
body: <p>This is an example of how my git repo is right now:</p>
  
  <blockquote>
  <pre><code>v1.0    v1.1    v1.2
    |       |       |
    a   -   b   -   c
    |               |
  master           HEAD
  </code></pre>
  </blockquote>
  
  <p>I usually commit, tag and push tags like this:</p>
  
  <pre><code>git commit -a -m "Commit msg"
  git tag -a v1.3 -m "Tag msg"
  git push --tags
  </code></pre>
  
  <p>The main problem I have is that the master branch doesn't move to the latest tag, so I'm always in a <a href="https://stackoverflow.com/a/3965714/720999">Detached HEAD</a> state. Is there any way to fix this so the master branch will be always pointing to the latest pushed tag?</p>