Git Revert - Visualised

preview_player
Показать описание
In this git tutorial we look at the Revert command. Now on first inspection you might think this command will move back to a previous commit, but that is actually implemented by the git Reset command. Get revert is a little different in that it simply removes the changes associated with a commit. Once it has undone the changes from the commit a new commit is created. So different and safer than Git reset as there is no chance to permanently lose data.

00:00 Intro
01:30 Setup example
03:20 Perform Revert
04:40 Visual Tree of Result
Рекомендации по теме
Комментарии
Автор

looking forward for more such videos. 👏

nagendradevara
Автор

This is neat. What is the visualization tool you're using?

r-i-ch
Автор

Just an observation, I find your repeated use of the phrase "it deletes the commit for file2 from the history" misleading - what it does is appends the reversing commit to the tip of the history. The former sounds like "added file2" is deleted from commit history and history is reapplied in order without omitted.

carcass