How to revert a commit in git after push in terminal | 1 min. GitHub tutorial

Описание к видео How to revert a commit in git after push in terminal | 1 min. GitHub tutorial

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!!

Комментарии

Информация по комментариям в разработке