title: Revert merge Git-Flow
body: <p>I'm using SourceTree and Git-Flow pattern. Now I have prepared a release for my beta-testers to test so I created a new <code>release/v1.0.1</code> branch. But my mind slipped and I decided to finish (merge into <code>develop</code> and <code>master</code> and tag) the release even though I haven't even sent out the release to my testers. So I would like to have the release branch open up again if my testers finds any bugs I can fix these bugs in the release branch and then when all bugs are fixed I can finish the release.</p>
  
  <p>So how can I easily with SourceTree preferably (or using git commands) revert back to the state when I had the <code>release/v1.0.1</code> branch?</p>
  
  <p>Attached screendump from SourceTree:</p>
  
  <p><img src="https://i.stack.imgur.com/dBp0y.png" alt="enter image description here"></p>
  
  <p><strong>EDIT:</strong> Okay I did the <code>git reset --hard HEAD~2</code> on <code>develop</code> (HEAD~2) because I had tested manually checking out. But now when I checkout <code>master</code> and do a <code>git reflog</code> it seems to me that I should do a reset on HEAD~6 </p>
  
  <pre><code>Peters-MacBook-Pro:Remessage peterwarbo$ git reflog
  f7663b1 HEAD@{0}: checkout: moving from develop to master
  3d132da HEAD@{1}: reset: moving to HEAD~2
  2f1c753 HEAD@{2}: checkout: moving from master to develop
  f7663b1 HEAD@{3}: checkout: moving from develop to master
  2f1c753 HEAD@{4}: merge release/v1.0.1: Merge made by the 'recursive' strategy.
  4332fe4 HEAD@{5}: checkout: moving from master to develop
  f7663b1 HEAD@{6}: merge release/v1.0.1: Merge made by the 'recursive' strategy.
  fe323ef HEAD@{7}: checkout: moving from release/v1.0.1 to master
  28a63ea HEAD@{8}: commit: Bumped version number to 1.0.1
  </code></pre>
  
  <p>But when I do that I get this "error":</p>
  
  <pre><code>Peters-MacBook-Pro:Project peterwarbo$ git reset --hard HEAD~6
  fatal: ambiguous argument 'HEAD~6': unknown revision or path not in the working tree.
  </code></pre>
  
  <p><strong>EDIT 2:</strong> New image to illustrate fuckup.</p>
  
  <p><img src="https://i.stack.imgur.com/Zo6T3.png" alt="enter image description here"></p>
  
  <p><strong>EDIT 3:</strong> Attached new image to illustrate the current state now after issuing the git commands in user1615903´s answer. Why does it say that develop is 2 behind? And why is there a merge from <code>release/v1.0.1</code> to master even though I did a reset to master to the initial commit (<code>fe323ef</code>)?</p>
  
  <p><img src="https://i.stack.imgur.com/okb2K.png" alt="enter image description here"></p>