Quantcast
Channel: How to do 'git checkout --theirs' for multiple files (or all unmerged files) - Stack Overflow
Viewing all articles
Browse latest Browse all 6

How to do 'git checkout --theirs' for multiple files (or all unmerged files)

$
0
0

Say I have this after attempting a merge and upon entering git status:

# Unmerged paths:#   (use "git add/rm <file>..." as appropriate to mark resolution)##   added by them: myfile1.xhtml#   added by them: myfile2.xhtml#   added by them: myfile3.xhtml

... and I know I want to do this for each of those files:

git checkout --theirs myfile1.xhtmlgit add myfile1.xhtml

... but there are many of them. How might I do them as a batch?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images