Created
October 24, 2018 21:09
-
-
Save paulegradie/98b988fba411b65f20bc621604ae6e2a to your computer and use it in GitHub Desktop.
How to find all new files you've added to a branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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