Information Technology Reference
In-Depth Information
The commits are now ordered (from the newest to the oldest)as c , b , d , a .
How It Works
The subcommand pick of interactive rebasing can be abbreviated as p . By changing
the order of subcommands in the editor you modify the order in which patches are ap-
plied. The rebasing applies the patches according to their order in the editor window.
The first subcommand in Listing 8-6 , which is p-cc595c7-d , defines the first patch
to be applied. Therefore in the resulting history the revision d ' will appear right after a .
The original revisions remain in the database and can be accessed through reflog
references.
8-6. Removing several revisions
Problem
Your repository contains several revisions. The last five revisions are labeled b through
f . You want to remove revisions b , d , and f . The transformation you want to achieve
is depicted in Figure 8-6 .
Figure 8-6 . Removing revisions
 
 
Search WWH ::




Custom Search