title: What does this do: git branch -f
body: <p>I'm trying to figure out how to use this command properly. I believe this is the command and flag I want to essentially make one branch into my other branch (basically delete a branch and create a new branch with the same name with the files of another branch), but I don't know for sure, or if I have the syntax correct.</p>
  
  <p>If I do this:</p>
  
  <pre><code>git branch -f master sub-branch
  </code></pre>
  
  <p>Will it remove all of the files from master and fill it with the files from sub-branch?</p>