Git: a list of all unauthorized changes to git

Creating a branch for different topics, rather than regularly deleting them when I no longer need them, now I have about 50 branches;)

I tried to delete branches, and some of them have no changes.

What I want is the ability to see exactly what changes are in any branch of my repo that are not in the main. Is there any way to do this

Thanks in advance.

+68
git branch
Aug 30 '10 at 13:22
source share
3 answers

To list branches with commits not merged with the master:

git branch --no-merged master 

To list the relevant commits:

 git cherry -v master <branch> 
+126
Aug 30 '10 at 15:54
source share

I came across this question when I was trying to remember the syntax ...

 git log <branch> --not master --stat 

This will appear as a commit for <branch> which have not been merged with the master. Files that have been modified with commits will be included in -stat. You can also use this to compare any two branches, replacing master with a different branch name.

+7
Feb 15 '17 at 20:05
source share

It's pretty easy to get an overview of your branches with gitk .

-3
Aug 30 '10 at 13:26
source share



All Articles