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

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

$
0
0

allow you delete commit and doesn't remove your current files:

git reset --soft Id commit

then use forcefully push the local changes:

git push -f origin nameBranch

Viewing all articles
Browse latest Browse all 80

Trending Articles



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