title: How to delete commit that is pushed to the remote repository?
body: <p>A local branch:-</p>
  <blockquote>
  <p>'feature/100'</p>
  </blockquote>
  <p>And Remote branches:-</p>
  <blockquote>
  <p>'master'</p>
  <p>'Version2'</p>
  </blockquote>
  <p>Accidently,</p>
  <ol>
  <li>I have merged my feature branch 'feature/100' to the master</li>
  <li>Also pushed it to the remote repository.</li>
  </ol>
  <p>But in real '<strong>feature/100</strong>' should have been merged into remote branch '<strong>Version2</strong>'</p>
  <p><strong>How I fixed it (partially)</strong>:-</p>
  <p>i have merged the feature branch '<strong>feature/100</strong>' to the remote branch '<strong>Version2</strong>' and pushed it to the server.</p>
  <pre><code>git checkout Version2
  git merge --squash feature/100
  git add .
  git commit -m 'New message'
  </code></pre>
  <p>But I want to delete the last push I have merged and commit to the master branch. How?</p>
  <p><strong>Side Note</strong> I am only one working on this project.. So even if pushed commit is deleted it won't harm anyone else</p>