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

Answer by sun34 for How do I delete a commit from a branch?

$
0
0
git reset --hard commitIdgit push <origin> <branch> --force

PS: CommitId refers the one which you want to revert back to


Viewing all articles
Browse latest Browse all 80

Trending Articles



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