0

I need help to list all modified and changed branch files, but search all commits. The command I am using brings only the last commit.

git show --stat nome_branch --oneline
General Grievance
  • 4,259
  • 21
  • 28
  • 43
  • https://stackoverflow.com/search?q=%5Bgit%5D+list+files+in+all+commits – phd Nov 28 '18 at 13:09
  • Welcome to Stack Overflow. Do you need this to just have a view of what changed ? or do you want to write a script which does something with the output ? – LeGEC Nov 28 '18 at 14:08
  • In simple cases: `git diff --stat branch_point HEAD` will do this, you will have to find the branch_point (https://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git) & probably copy'n'paste the revision hash. Or if you've merged a `main` branch onto your branch, then `git diff --stat main HEAD` (or `git diff --stat origin/main HEAD`) might be better. – user1998586 Jan 23 '22 at 07:29

1 Answers1

1

If you want a view for human consumption, try one of the following :

git log --name-only
git log --name-status
git log --stat

# maybe add --graph and --oneline options :
git log --oneline --graph --stat # or --name-only or --name-status ...
LeGEC
  • 35,975
  • 2
  • 46
  • 87