Delete GIT commits
To remove pushed git commit:
git reset --hard HEAD~N
Where N
is the number of commits to remove (prev).
Push changes to origin:
git push -f origin/master
To remove pushed git commit:
git reset --hard HEAD~N
Where N
is the number of commits to remove (prev).
Push changes to origin:
git push -f origin/master