What command can I use to know how many files are different between two branches, just a summary, not the actual files. Something like:
51 Modified
3 Deleted
4 New files
To see the changes between two commits, you can use git diff ID1.. ID2 , where ID1 and ID2 identify the two commits you're interested in, and the connector .. is a pair of dots. For example, git diff abc123.. def456 shows the differences between the commits abc123 and def456 , while git diff HEAD~1..
On the Github, go to the Source view of your project. You will see a link named 'Branch List'. Once the page opens you can see a list of all the remote branches. Hit on the Compare button in front of any of the available branches to see the difference between two branches.
The git diff command displays the differences between files in two commits or between a commit and your current repository.
Try git diff --stat
. And there's the even shorter --shortstat
.
e.g. on branch master
type git diff --stat otherbranchname
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