How to do it...

To really showcase this Git feature, we will start off six commits ahead of the origin/stable-3.1 branch. This is to simulate the fact that we have just created six commits on top of the rebaseExample3 branch; to do this, perform the following steps:

  1. Find a commit that is between origin/stable-3.1 and origin/stable-3.2, and list the commits in reverse order. Alternatively, you can scroll down to the bottom of the output and find the commit we will use, as shown in the following snippet:
$ git log origin/stable-3.1..origin/stable-3.2 --oneline --reverse
8a51c44 Do not close ArchiveOutputStream on error
3467e86 Revert "Close unfinished archive entries on error"
f045a68 Added the git-describe implementation
0be59ab Merge "Added ...

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.