This quick tutorial shows you how to revert a commit after push. It shows you how to revert a merge commit with git revert -m 1 [hash], which is only for merge commits. To revert a regular commit, a non-merge commit, just use git revert [hash].
I often find that simple directions for how to revert a commit in GitHub online are full of convoluted info -- this video serves as a quick guide to revert a commit, especially when things suddenly go wrong and you need to undo a commit, ASAP! This video shows you how to use GitHub UI to identify which commit hash or id to use with git revert. It is possible to retrieve the correct hash in the terminal with git log, but I prefer to use the UI -- easier to navigate, understand, and look at.
I make quick tutorials for the basic problems we often run into as developers. Thank you for the thumbs up!! Have a good day!!
On this page of the site you can watch the video online How to revert a commit in git after push in terminal | 1 min. GitHub tutorial with a duration of hours minute second in good quality, which was uploaded by the user Carmelle Codes 26 August 2020, share the link with friends and acquaintances, this video has already been watched 176,477 times on youtube and it was liked by 1.5 thousand viewers. Enjoy your viewing!