Information Technology Reference
In-Depth Information
When you finish rebasing
$ git log --oneline
should print:
4932572
e
93b7397
c
17e5231
a
How It Works
If you remove a subcommand pick from the editor, then the corresponding revision will
not appear in the history.
8-7. Editing an old revision
Problem
Your repository contains a number of revisions. The third revision in the history is
labeled
x
, and it introduced a single new file
x.txt
. Now you want to re-edit this re-
vision: it should introduce two new files
x.txt
and
y.txt
. You also want to intro-
duce a new revision
z
right after commit
x
'. The other revisions should remain un-
changed. The transformation you want to achieve is presented in
Figure 8-7
.