Quantcast
Channel: How do I delete a commit from a branch? - Stack Overflow
Viewing all articles
Browse latest Browse all 80

Answer by Chris Sim for Delete commits from a branch in Git

$
0
0

What I do usually when I commit and push (if anyone pushed his commit this solve the problem):

git reset --hard HEAD~1git push -f origin

hope this help


Viewing all articles
Browse latest Browse all 80

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>