Git Undo - rewrite Git history with confidence

preview_player
Показать описание

======================

📕 My book "Gitting Things Done" is officially out!

Or read it for free at:

======================

A writeup for this talk:

The talk covers:
* Recording changes - working directory, index (staging area), and repository.
* git reset
* git cherry-pick
* git revert
* reflog and git log -g

======================
Support this channel:
My mission is to create free, accessible, visual and practical tutorials. If you would like to support me on this, you can buy me a coffee :)

Thank you!!
======================

--
I am working on a book about Git!
--

======================
How do I make videos?

I often get questions about the tools I use to create Videos - so here they are :)

(When available, I may use affiliate links and may earn a commission, with NO additional cost to you)

======================

Video created by Omer Rosenbaum. All rights reserved.
Рекомендации по теме
Комментарии
Автор

This was great - thank you! One question about your "oops wrong branch" example around 28:30. I was surprised that you didn't want to use "git reset --mixed HEAD~1" followed by a "git commit -am." Is this because the branch/head is not stored in the index? Wondering how we're able to bypass the git add step.

fetik
Автор

learned about git reflog and git log -g, Thanks

vaharish