Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: How to see different of two remote branches?

Tags:

git

github

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>?

like image 509
user3361136 Avatar asked Mar 21 '23 08:03

user3361136


1 Answers

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
like image 92
CDub Avatar answered Apr 09 '23 13:04

CDub