title: How to replace local branch with remote branch entirely in Git?
body: <p>I have two branches:</p>
  
  <ol>
  <li>local branch (the one which I work with)</li>
  <li>remote branch (public, only well-tested commits go there)</li>
  </ol>
  
  <p>Recently I seriously messed up my local branch.</p>
  
  <p>How would I replace the local branch entirely with the remote one, so I can continue my work from where the remote branch is now?</p>
  
  <p>I have already searched SO and checking out to the remote branch locally does not have any effect.</p>