“Git undo” or the art of rolling back
Buy now
Learn more
All videos in one download
All sample repos in one download
Welcome!
Undoing ongoing edits ✋
Undoing an edit to the working copy
Undoing an edit to the index and work...
Undoing an edit to the index only
Undoing commits🧞♂️
Still with reset but…
The --soft and --mixed modes
Differences between --keep, --merge a...
The --keep mode
The --merge mode
The --hard mode
So this is swell, but how about some actual use cases? 🤔
You can (un)do pretty much anything
I committed too fast
Splitting my latest commit
Squashing recent commits as one
I should have branched off sooner
Wiping the slate clean
Undoing is neat, but can I “redo” if I screw up? 😨
Sure you can: the reflog remembers wh...
Log vs Reflog
How is our reflog built from the HEAD?
How is our reflog built from branch t...
So I can never lose anything, right?
reflog + reset: back to the future
Works with everything! 🦄
commit, reset, merge, rebase, pull…
Undoing a merge
Undoing a rebase
Undoing a pull
Undoing a merge-mode pull
Undoing a rebase-mode pull
Git revert: not so fast! 🤢
Git revert carelessly pollutes the hi...
And we’re done! 😭
Want more video courses?
Further reading…
Products
Course
“Git undo” or the art of rolling back
“Git undo” or the art of rolling back
“Git undo” or the art of rolling back
Buy now
Learn more
All videos in one download
All sample repos in one download
Welcome!
Undoing ongoing edits ✋
Undoing an edit to the working copy
Undoing an edit to the index and work...
Undoing an edit to the index only
Undoing commits🧞♂️
Still with reset but…
The --soft and --mixed modes
Differences between --keep, --merge a...
The --keep mode
The --merge mode
The --hard mode
So this is swell, but how about some actual use cases? 🤔
You can (un)do pretty much anything
I committed too fast
Splitting my latest commit
Squashing recent commits as one
I should have branched off sooner
Wiping the slate clean
Undoing is neat, but can I “redo” if I screw up? 😨
Sure you can: the reflog remembers wh...
Log vs Reflog
How is our reflog built from the HEAD?
How is our reflog built from branch t...
So I can never lose anything, right?
reflog + reset: back to the future
Works with everything! 🦄
commit, reset, merge, rebase, pull…
Undoing a merge
Undoing a rebase
Undoing a pull
Undoing a merge-mode pull
Undoing a rebase-mode pull
Git revert: not so fast! 🤢
Git revert carelessly pollutes the hi...
And we’re done! 😭
Want more video courses?
Further reading…
Learn more
Buy now
Relax! Git makes it easy to get back seemingly lost work and dig yourself out of even the most delicate situations.
All videos in one download
All sample repos in one download
Welcome!
Undoing ongoing edits ✋
3 Lessons
Undoing an edit to the working copy
Undoing an edit to the index and work...
Undoing an edit to the index only
Undoing commits🧞♂️
6 Lessons
Still with reset but…
The --soft and --mixed modes
Differences between --keep, --merge a...
The --keep mode
The --merge mode
The --hard mode
So this is swell, but how about some actual use cases? 🤔
6 Lessons
You can (un)do pretty much anything
I committed too fast
Splitting my latest commit
Squashing recent commits as one
I should have branched off sooner
Wiping the slate clean
Undoing is neat, but can I “redo” if I screw up? 😨
6 Lessons
Sure you can: the reflog remembers wh...
Log vs Reflog
How is our reflog built from the HEAD?
How is our reflog built from branch t...
So I can never lose anything, right?
reflog + reset: back to the future
Works with everything! 🦄
6 Lessons
commit, reset, merge, rebase, pull…
Undoing a merge
Undoing a rebase
Undoing a pull
Undoing a merge-mode pull
Undoing a rebase-mode pull
Git revert: not so fast! 🤢
1 Lesson
Git revert carelessly pollutes the hi...
And we’re done! 😭
2 Lessons
Want more video courses?
Further reading…