Git: Mastering Version Control
by Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Rewriting history
Many times, while working on a project, you may want to revise your commit history. One reason for this could be to make it easier to review before submitting changes upstream. Another reason would be to take reviewer comments into account in the next improved version of changes. Or perhaps you'd like to have a clear history while finding regressions using bisection, as described in Chapter 2, Exploring Project History.
One of the great things about Git is that it makes revising and rewriting history possible, while providing a wide set of tools to revise history and make it clean.
Note
There are two conflicting views among users of the version control system: one states that history is sacred and you should better show the true ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access