create raw binary git patch file for untracked files only (exclude: zip archives/files/
directory/*.patch
files)
$ { for next in $( git ls-files --others --exclude-standard --exclude=*.zip --exclude=files/* -x '*.patch') ; do git --no-pager diff -p --ignore-space-change --ignore-cr-at-eol --raw --binary -b -w --no-index /dev/null $next; done; } > untracked.patch
show information about changes that will be applied
git apply --stat untracked.patch
apply changes
git apply --binary --reject untracked.patch