In Git how can I see the diff from master to develop?
I want to see everything that is not the same of the two branchs
You can run the git diff HEAD command to compare the both staged and unstaged changes with your last commit. You can also run the git diff <branch_name1> <branch_name2> command to compare the changes from the first branch with changes from the second branch. Order does matter when you're comparing branches.
The git diff command is a widely used tool to track the changes. The git diff command allows us to compare different versions of branches and repository. To get the difference between branches, run the git diff command as follows: $ git diff <branch 1> < branch 2>
As explained in these other answers, you can do this by using git-diff
to:
View all the differences:
git diff master..develop
List files that are different:
git diff --name-status master..develop
git diff [branch1] [branch2]
will do it for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With