1

我做了一个git pull origin master,大约有 50 个文件有冲突,是否可以在所有有冲突的文件FETCH_HEAD上自动应用部分并丢弃部分HEAD

<<<<<<< HEAD
    | does not have to be set. If it isn't we'll try our best to guess the URL
=======
    | does not have to be set. If it isn't, we'll try our best to guess the URL
>>>>>>> FETCH_HEAD
4

1 回答 1

5

是的。利用...

git checkout --theirs .

...对当前目录中或之下的所有文件执行此操作。

于 2012-08-19T04:48:07.120 回答