Reputation: 63
Git: How to see different of two remote branches?
I have two remote branches that I need to check the differents?
Example:
master and develop
of
develop and fix-xyz
what is the git comment to see the files that changes and then to see what lines have changed>?
Upvotes: 5
Views: 5413
Reputation: 28258
To compare your local version of develop with the remote version of the develop branch you run
git diff develop origin/develop
If the branch fix-xyz is branched of master (I found the question a bit unclear, I am assuming this) you can check with
git diff fix-xyz origin/master
Upvotes: 0
Reputation: 13354
Assuming I'm reading your question correctly, and assuming they're on origin
, you can do:
git diff remotes/origin/origin remotes/origin/develop
and
git diff remotes/origin/develop remotes/origin/fix-xyz
Upvotes: 9