假设我在尝试合并后,在输入 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
...而且我知道我想要对这些文件中的每一个执行此操作:
git checkout --theirs myfile1.xhtml
git add myfile1.xhtml
... 但它们有很多。我该如何批量处理它们?