git cherry pick chain 1

git cherry pick chain

git cherry-pick A..B (Not includes A)
git cherry-pick A^..B (Includes A)

In the "cherry-pick A..B" form, A should be older than B.
If you want to pick the range B through D (including B) that would be B^..D (instead of B..D).

Here is what the above code is Doing:
1. git log –oneline –reverse –no-merges –ancestry-path A..B
2. git log –oneline –reverse –no-merges –ancestry-path A^..B
3. git log –oneline –reverse –no-merges –ancestry-path B..D
4. git log –oneline –reverse –no-merges –ancestry-path B^..D

Similar Posts