Reputation:
How can I list the commits of a specific merge-commit 845884.
Here, for instance, I only want commits 1, 2, 3 and only them
* 845884... Merged branch xxxx
|\
| * 68daa7... commit 3
* | a58ec2... commit from master
| |
| * 87da50... commit 2
| |
| * 5e62f9... commit 1
* | 766e1b... commit from master
|/
* 4b8f227
Upvotes: 1
Views: 539
Reputation: 51830
Try :
git log --oneline --graph <commitId>^..<commitId>
If you want to exclude the merge commit itself :
git log --oneline --graph <commitId>^..<commitId>^2
Upvotes: 2