How To Revert a Merge in GIT

To revert the local branch:
1 |
$ git reset --hard HEAD~1 |
To revert the remote branch AFTER the previous step has been performed:
1 |
$ git push origin HEAD --force |
![]() |
To revert the local branch:
1 |
$ git reset --hard HEAD~1 |
To revert the remote branch AFTER the previous step has been performed:
1 |
$ git push origin HEAD --force |