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

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

$
0
0

last Commit from you want to revert

git reset --hard <commit-hash>

then execute git push force to push you changes with your remote branch.

git push origin <branch-name> --force

Viewing all articles
Browse latest Browse all 80

Trending Articles



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