Given that there is a tree depicted as below:
d1a--d1b---d1c--d1d--d1e <dev>
/ / \
a--b--c---d---e--------f---g----h--i <master>
a is the oldest commit, while i is the latest one, the HEAD
d1a is branched off master to a new branch dev, added some new changes and merged changes from master (from f to d1d), and then eventually merged back to ‘master’ at h.
When doing git log/rev-list, how do I select:
- all commits from HEAD to e:
i, h, g, f, e, d1e, d1d - all commits from HEAD to g:
i, h, g - all commits from HEAD to d1b:
i, h, g, f, d1e, d1d, d1c, d1b
Many thanks in advance for any pointers/suggestions/hints!
From
man git-rev-parse:There is even an example, so I’d RTFM 😉