Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Get the commit id of merged Pull Requests

Over the development process, there are many commits to a code repository.
Some of them are merge commits, in other words, they carry the ‘signal’ to merge a particular Pull Request to master.

You can see the IDs of these commits easily using an online code repository, such as Github, Bitbucket etc…

However, can this be done locally?
Is there a way to get a list of the ids of the merge commits, and see which branch each one corresponds to ?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think what you are looking for is

git log --merges

Additionally you can add the --oneline parameter to see a shorter version of your merges.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading