title: Revert commits of local branch from master
body: <p>I have a feature branch where I have some commits. Then I did run git rebase master and merged that branch back to master. </p>
  
  <p>So it was like </p>
  
  <pre><code>git checkout -b somebranch
  ......some work commits here .....
  git checkout master
  git fetch
  git merge origin/master
  git checkout somebranch 
  git rebase master
  git checkout master
  git merge  somebranch
  </code></pre>
  
  <p>Now I need to pull out all my commits in somebranch out from master completely, possible will need to merge it back to master later.  </p>
  
  <p>Update: changes were pushed to master some time ago and there is many commits after merge, so reset to head will not work</p>