When executing git fetch
or there get pull
may be a conflict. Is there a way to get copies of all conflicting files? For example, the file foo.dat
is in conflict, then I would like to have copies of foo.dat.ours
and foo.dat.theirs
. I think SVN has similar behavior.
- Get conflicting file names
git diff --name-only --diff-filter=U
- Submit a copy with
.ours
postfix ( xargs cp
) - Get a copy of them?
source
share