说我尝试合并后输入以下内容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
...但是其中有很多。我应该如何批量处理它们?
对于我的案例,解决方案最终是在目录路径中仅使用通配符,因为文件已分组:
git checkout --theirs directory_name/*
git add directory_name/*
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句