How To Revert the Last git Commit

Published Date Author: , Posted July 9th, 2020 at 4:51:21pm

shell$ git log | head -1
commit a203e1bd04718bff10a3df4a3389c493c97c0432

Use the commit string as the last argument to the git revert command:
shell$ git revert -m 1 a203e1bd04718bff10a3df4a3389c493c97c0432

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.