How to remove permanently last commit from git remote
To only remove commit but save current code use: git reset --soft HEAD~1
...make new commit and then git push origin master --force
To remove commit and remove commit's code use: git reset --hard HEAD~1 git push origin master --force
No comments:
Post a Comment