“Git undo” or the art of rolling back
by
Delicious Insights
Login
Buy for €24.99
The --soft and --mixed modes
“Git undo” or the art of rolling back
/
Undoing commits🧞♂️
This content is locked.
You'll need to
purchase
or
sign in
to view this content.
“Git undo” or the art of rolling back
Relax! Git makes it easy to get back seemingly lost work and dig yourself out of even the most delicate situations.
Buy for €24.99
Learn more
Already enrolled?
Sign in to continue learning.
Table of contents
“Git undo” or the art of rolling back
by
Delicious Insights
ui-24px-outline-1_lock
Contents
Contents
Draft
All videos in one download
Draft
All videos in one download
Draft
All sample repos in one download
Draft
All sample repos in one download
Draft
Welcome!
Draft
Welcome!
ui-24px-outline-1_lock
Undoing ongoing edits ✋
Undoing ongoing edits ✋
Draft
Undoing an edit to the working copy
Draft
Undoing an edit to the working copy
Draft
Undoing an edit to the index and working copy
Draft
Undoing an edit to the index and working copy
Draft
Undoing an edit to the index only
Draft
Undoing an edit to the index only
ui-24px-outline-1_lock
Undoing commits🧞♂️
Undoing commits🧞♂️
Draft
Still with reset but…
Draft
Still with reset but…
Draft
The --soft and --mixed modes
Draft
The --soft and --mixed modes
Draft
Differences between --keep, --merge and --hard
Draft
Differences between --keep, --merge and --hard
Draft
The --keep mode
Draft
The --keep mode
Draft
The --merge mode
Draft
The --merge mode
Draft
The --hard mode
Draft
The --hard mode
ui-24px-outline-1_lock
So this is swell, but how about some actual use cases? 🤔
So this is swell, but how about some actual use cases? 🤔
Draft
You can (un)do pretty much anything
Draft
You can (un)do pretty much anything
Draft
I committed too fast
Draft
I committed too fast
Draft
Splitting my latest commit
Draft
Splitting my latest commit
Draft
Squashing recent commits as one
Draft
Squashing recent commits as one
Draft
I should have branched off sooner
Draft
I should have branched off sooner
Draft
Wiping the slate clean
Draft
Wiping the slate clean
ui-24px-outline-1_lock
Undoing is neat, but can I “redo” if I screw up? 😨
Undoing is neat, but can I “redo” if I screw up? 😨
Draft
Sure you can: the reflog remembers what you forgot
Draft
Sure you can: the reflog remembers what you forgot
Draft
Log vs Reflog
Draft
Log vs Reflog
Draft
How is our reflog built from the HEAD?
Draft
How is our reflog built from the HEAD?
Draft
How is our reflog built from branch tips?
Draft
How is our reflog built from branch tips?
Draft
So I can never lose anything, right?
Draft
So I can never lose anything, right?
Draft
reflog + reset: back to the future
Draft
reflog + reset: back to the future
ui-24px-outline-1_lock
Works with everything! 🦄
Works with everything! 🦄
Draft
commit, reset, merge, rebase, pull…
Draft
commit, reset, merge, rebase, pull…
Draft
Undoing a merge
Draft
Undoing a merge
Draft
Undoing a rebase
Draft
Undoing a rebase
Draft
Undoing a pull
Draft
Undoing a pull
Draft
Undoing a merge-mode pull
Draft
Undoing a merge-mode pull
Draft
Undoing a rebase-mode pull
Draft
Undoing a rebase-mode pull
ui-24px-outline-1_lock
Git revert: not so fast! 🤢
Git revert: not so fast! 🤢
Draft
Git revert carelessly pollutes the history
Draft
Git revert carelessly pollutes the history
ui-24px-outline-1_lock
And we’re done! 😭
And we’re done! 😭
Draft
Want more video courses?
Draft
Want more video courses?
Draft
Further reading…
Draft
Further reading…
Welcome!
Enter your info below to login.
Your email
Your password
Login
Forgot your password?