How to view files that diverge on two branches of Git?

How can I only see files that diverge between two branches?

+4
source share
3 answers

you can use

git diff --name-only 

only use divergent file names. Add to this command the commit SHA of the last commit in another branch

+5
source
 $ git diff --name-only branch1 branch2 
+7
source

It looks like you need to find Git equivelent to bk changes -R <branch> or bk changes -L <branch> , which has a bitkipper that tells you any change sets that are part of your local, but not remote, and vice versa .

Sorry, I really did not use Git extensively :(

-6
source

Source: https://habr.com/ru/post/1300882/


All Articles