title: Git: How do I checkout a branch ignoring all local changes?
body: <p>After I have messed around with directories (created/removed) and added/edited both text and binary files, how do I tell git to throw away all my changes, and bring the branch down again, as if I never messed with anything?</p>
  
  <p>Currently I'm doing these two commands.</p>
  
  <pre><code>git stash
  git stash clear
  git pull &lt;remote&gt; &lt;branch&gt;
  </code></pre>
  
  <p>which seems to work. I read in help that -f is used to throw away local changes. If that's the case does ...</p>
  
  <pre><code>git checkout &lt;branch&gt; -f
  </code></pre>
  
  <p>do the same thing?</p>
  
  <p>Thank you!</p>