How to display all updated file name on a particular branch. I have created a feature/[branchName] and after many commits on it, I would like to display all updated files from the first commit to the last one, on that branch.
Asked
Active
Viewed 96 times
-1
-
3What do you consider to be the first commit? Have you considered using `git diff`? – evolutionxbox Mar 24 '21 at 16:53
-
@evolutionxbox my first commit in the branch – knoppix Mar 24 '21 at 16:54
-
2can you clarify please what 'all my modifications' means, and how e.g. `git diff origin/master` does _not_ do what you want? – AD7six Mar 24 '21 at 17:14
-
@AD7six thanks i can see only updated file of all commits into my branch with ```git diff origin/master ``` – knoppix Mar 24 '21 at 19:24
1 Answers
1
Switch to the branch:
$ git checkout <branch_name>
Show commit logs with full diff:
$ git log -p

Andy Sukowski-Bang
- 1,402
- 7
- 20
-
git log -p didn't display only branch commits, it show me all project commit in chronological order. ```git diff --name-only master...``` or ```git diff origin/master``` solve the issue, thanks – knoppix Mar 24 '21 at 20:05