当试图合并github上的请求时,发生了冲突,其中repo可从https://github.com/my_production_repo/my_app.git
进行复制。解决拉请求冲突时如何强制git pull
于是跟随他们的文档,我想在我的本地(productio_repo)运行此
git checkout -b tmp master
git pull https://github.com/my_forked_repo/my_app.git master
然后,我有一些冲突来解决。问题是有些冲突与byte-code files
有关。我想迫使我的本地文件可以通过将文件从my_forked_repo
覆盖,我想这
git merge -s recursive -X theirs https://github.com/my_forked_repo/my_app.git master
,但我得到了https://github.com/my_forked_repo/my_app.git - not something we can merge
你被git pull引入歧途。 'pull'命令对于两个单独的命令来说只是一个便捷的快捷方式:'git fetch',它可以让你从另一个仓库(比如叉子)检索提交到你自己的仓库中的提交和'git merge',这需要你在自己的回购中进行提交。你不能提供'git merge'的URL,只能提供'git fetch'。 – torek
可能你可以试试[this](https://stackoverflow.com/a/35442565/2303202)。请注意,其中一个编辑处理整个目录,对于单个文件的第一个版本更好 – max630