3

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.

1 Answers1

2

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
Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105