Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to find all new files you've added to a branch
git diff {old_branch}...{new_branch} --name-status --diff-filter=A
e.g. to find a enw file added since branching from master:
git diff master...gradie/sandbox --name-status --diff-filter=A
Options for `--diff-filter
Added (A)
Copied (C)
Deleted (D)
Modified (M)
Renamed (R)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.