“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
Section
Lesson
Git revert carelessly pollutes the history
Git revert carelessly pollutes the history
“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…
Lesson unavailable
Please
login to your account
or
buy the course
.