O'Reilly logo

Git Recipes: A Problem-Solution Approach by Włodzimierz Gajda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Modifying the History

This chapter deals with the diverse commands that modify the structure of the revision graph. Sometimes you will need to merge three different revisions into one revision. At other times you may need the opposite operation: splitting a single commit into many separate commits. Whatever the case may be, keep in mind that git revisions are permanent. They never change. Once you have created a revision, there is no way to modify it. All you can do is to throw it away using the method presented in Recipes 3-12 and 5-4. Therefore, whenever I say something like “let’s modify a revision,” the operation I have in mind ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required