git diff - GIT - How to list only newly added files between two branches -
how can list newly created(added) files between 2 branches? can list files have been changed with:
git diff --color --name-only branch1..branch2
but contains files, changed content, not new files. there git command this, or have checkout each branch , compare files, e.g. bash? thanks.
filip
just replace --name-only
--name-status
. way git show if file added, deleted or modified.
if interested in new (=added) files can grep ^a
:
git diff --name-status branch1..branch2 | grep ^a
Comments
Post a Comment