Git: Revert Last Commit
Jan 10, 2021
TDLR;
There are many methods but this method:
- Don’t require
push --force
because we create new commit - Content is revert of the last commit
e.g. If last commit addhello
this commit will deletehello
$ git revert HEAD
Then push the change to the repos
$ git push
Cheers !