Revert a merged pull request on Bitbucket
<p>I've created a pull request and I've merged it to an wrong branch. How can I revert it?</p>

<p>As far I've been to figuring out taking a look over there, I'm able to hard reset the destination branch... but, how about the pull request in <code>origin</code> repository?</p>

<p>I'm using Bitbucket and I've created the pull request from SourceTree (opening the Bitbucket page).</p>

<p>I've three branches I'm working on: <code>master</code>, <code>dev</code> and <code>create-alias</code>. <code>create-alias</code> was set up from <code>dev</code> and <code>dev</code> from <code>master</code>: <code>master -&gt; dev -&gt; create-alias</code>. The problem is I made a pull request from <code>create-alias</code> and I did merge it into <code>master</code> instead of <code>dev</code>.</p>

<p>I'm working on <code>create-alias</code> branch right now. The last commit on <code>create-alias</code> is <code>6ee20f9</code> and the merged commit on <code>master</code> is <code>be36f72</code>.</p>

<p>Could you write me down a bit about who to step-by-step revert it?</p>

<p>As far I've been able to figure out:</p>

<ol>
<li>checkout on <code>master</code>.</li>
<li>revert -m 1 <code>6ee20f9</code>.</li>
<li>push.</li>
<li>checkout on <code>create-alias</code> and going on working.</li>
</ol>

<p>Isn't it?</p>