Git command to list changes and additions on branch.

nick_maunder May 11, 2021

I would be interested to know the git command to list the files that have been changed / added in a branch. Basically the output you see the files tab window in a bitbucket pull request.

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 2022

Hey @nick_maunder 

G'Day!

I believe what you are looking for here is a git diff that will show the diff between the two branches and the files/code that has been changed.

git diff main...branch

Additionally, do check the following thread on Stackoverflow here if you wish to try multiple other ways to view branch changes.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events