git - Compare commit in separate branches and detect common modified files - Stack Overflow

admin2025-04-16  5

Using git I would like to monitor that branch developpers are working on separate files or at least I want to check that common modified files are the correct ones.

using different tools (tortoise or smartgit for instance), if I select two commit in separate branches I can see :

added files removed files modified files

but a "modified" files don't mean that both commit (and their predecessor) modified the file. maybe only one branch modified the file (and it is not a problem).

if would like to do it manually I need to : make a diff between commit A in branchA with the source of branchA/branchB (= SOURCE) => list all modified files make a diff between commit B in branchB with the source of the branchA/branchB (= SOURCE) => list all modified files

and then check if there are common file that are modified in each list.

isn't there a command that could do it by itself ?

转载请注明原文地址:http://www.anycun.com/QandA/1744759045a87210.html