Undoing changes in Git

2,129 views · Published 23 November 2018 · 9:25 · Indexed 24 October 2026

Channel: Zell Liew · 2018 · Science & Technology

Watch on YouTube

How do you undo, and go back to a previous state? We're going to cover four common scenarios and how to undo your changes. 

The four scenarios: 
1. Discarding local changes 01:00
2. Amending the previous commit 02:30
3. Rolling back to a previous commit 04:15
4. Reverting a commit that has been pushed to the remote 06:55

Github article on undoing changes: https://blog.github.com/2015-06-08-how-to-undo-almost-anything-with-git/

To consume this video in article form, go here: https://zellwk.com/blog/git-tags

More from this channel