title: Revert pushed branch to a concrete commit
body: <p>I have merged a dev branch (with constant, sometimes unstable changes) to our master branch (where we store the released, stable code). I want to restore the master branch to the state it was before like the merge with the dev branch had never happened (and that when in the future we merge the dev branch all changes that we will discard now will be merged "again").</p>
  
  <p>This is the current status of the master branch and I want it to have the 'professional-1.1.2' commit/tag at the HEAD.</p>
  
  <p><img src="https://i.stack.imgur.com/Q7Mi2.png" alt="status of the master branch"></p>
  
  <p>I tried:</p>
  
  <pre><code>$ git revert -n professional-1.1.2..HEAD
  fatal: Commit 9167e846a387c793edbc089c7ab6bd9eb8260456 is a merge but no -m option was given.
  $ git revert -n -m 1 professional-1.1.2..HEAD
  fatal: Mainline was specified but commit 380169097f35d07466640bc0db1b639278cd25fa is not a merge.
  $ git revert -n -m 2 professional-1.1.2..HEAD
  fatal: Mainline was specified but commit 380169097f35d07466640bc0db1b639278cd25fa is not a merge.
  </code></pre>
  
  <p>After a bit of research I think that the better option is do a <code>git reset --hard professional-1.1.2</code> and <code>git push --force</code> as the answer to <a href="https://stackoverflow.com/questions/3166713/git-how-to-ignore-fast-forward-and-revert-origin-branch-to-earlier-commit">Git: How to ignore fast forward and revert origin [branch] to earlier commit?</a> or <a href="https://stackoverflow.com/questions/5316438/reverting-pushd-git-commit">reverting push&#39;d git commit</a> . Other developers are in the same office, and they should never commit anything to master (as neither should I, but... yeah, we don't have permissions per branch), so it's not a big problem to tell them and do any action required.</p>
  
  <p>So in the end the question is: <code>git revert something</code> or <code>git reset --hard &lt;TAG&gt;</code> &amp;&amp; <code>git push --force</code>? If <code>git revert</code>, which commandline should I use?</p>