How to check if all the commits are done in previous branch (release/10.0.0) are present in the current branch (release/11.0.0) in GIT.
You can use the git diff command to show you the difference between the two release branches:
git diff release/10.0.0..release/11.0.0
Adding three dots instead of two will show this compared to the common parent branch.
git diff release/10.0.0...release/11.0.0
@Stephen Garber Thank you for your reply.
I was looking for something like this if i have 100 commits in branch A and if i want to check the commits of branch A in new branch B.
As of now i found the below command which gives branch names where the commit id is present.
git branch --contains <commit-id>
This works for single commit id. to check for list of commits then do we any approach ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.