title: How to reset a branch to another branch with git?
body: <p>let's say that we have an <code>hotfixes</code> branch which was created from <code>master</code>. we added commits to <code>hotfixes</code>, but those commits were not useful, so now we want to start from a fresh copy of <code>master</code> again.</p>
  
  <p>to clarify better, this is the reference workflow: <a href="http://nvie.com/posts/a-successful-git-branching-model/" rel="noreferrer">http://nvie.com/posts/a-successful-git-branching-model/</a></p>
  
  <p>let's also say that we pushed <code>hotfixes</code> to the <code>origin</code> remote because we have an awful set up and that's the only way to test something, so we need to reset the branch also on the remote server.</p>
  
  <p>how to reset <code>hotfixes</code> to a copy of <code>master</code>?</p>