how to remove last merge commit code example
Example 1: remove last commit git
git reset --hard HEAD^
git push origin -f
Example 2: how discharge changes e recover last commit git
git reset HEAD --hard
git reset --hard HEAD^
git push origin -f
git reset HEAD --hard