I need to find the different between two branches by commit ID, not by files. I mean, the commits which are not in one branch. How can I do it.
I fires, git diff branch1...branch2
, but, it gave the files different, I need commit ID differences.
I need to find the different between two branches by commit ID, not by files. I mean, the commits which are not in one branch. How can I do it.
I fires, git diff branch1...branch2
, but, it gave the files different, I need commit ID differences.
Try this
git log branch1...branch2
And optionally, we can give inner module[directory] of the project.
For example, want compare the commits in the module/admin
directory, you can try like this.
git log branch1...branch2 module/admin