How do you compare two branches git?
I had a branch.
developAnd then I had to do a new thing and I created another branch.
hotfixAnd besides the point, I did something else in this branch: Reactivated the common code and something.
Now I don't need any more, and I need to remove this branch.
I want to see the difference between these two branches so I can remember how strong I've been in the code.
How do you do that?
I want to see what the two branches are.
$ git diff ветка1 ветка2
It's useful to start by looking at a list of different files rather than different.
$ git diff --name-only ветка1 ветка2
and the same list with the status of each file (additioned/modified):
$ git diff --name-status ветка1 ветка2
Documentation: https://www.kernel.org/pub/software/scm/git/docs/git-diff.html ♪