title: Git: synch a branch with the original forked master
body: <p>I forked a GitHub project into my own repository. My repository contains only a "master" branch in which I commit my own code. The forked project contains a "master" branch only as well.</p>
  
  <p>From time to time, I find and fix some bug in the original code and I want to create a pull request so that the developers of the original project can add the fix. However, I don't want to add to this pull request all the code I changed, just the fix.</p>
  
  <p>I think the correct way to proceed here is to create a new branch in my repository, synchronize this with the original forked master, commit the fix and create the pull request. My question is: how can I create a branch and get rid of all my commits to synchronize it with the forked master?</p>
  
  <p>As an aside, is this actually the most practical way of doing this?</p>