I need a git command that will list all of the changed files in a pull request.
I only want the file path of the changed files, no extra info.
I've tried: git diff --name-only but that doesn't return anything for a PR.
Pull Request is a GitHub feature and not a native Git command. However, if you have the source and target branch names, you can get the files changed using,
git diff --name-status firstbranch..yourBranchName
Showing which files have changed between two revisions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With