Search code examples
gitgit-loggit-history-graph

GIT Changed Files Between two Branches


I have a specific question to GIT History. It is possible to compare two branches and get a list with all files there changed? If yes then tell me how, please.

The reason is I need merge a branch in the other branch. From a developer there is not aviable anymore... And I need to know which files he has changed.

Thanks a lot, Florian


Solution

  • Just check the diff between two branches -

    git diff branch1 branch2
    

    Use stat param to list only differing files.

    git diff --stat branch1 branch2