我必須在git pull
之後解決一些衝突。如何在git pull後解決衝突?
$ git pull
CONFLICT (rename/add): Renamed vignette_generator_mashed.h->vision_problem_8.h in 49423dd0d47abe6d839a783b5517bdfd200a202f. vision_problem_8.h added in HEAD
Added as vision_problem_8.h~HEAD_1 instead
Removed vignette_generator_cross_square.cc
Automatic merge failed; fix conflicts and then commit the result.
所以我GOOGLE了它一下,發現人們使用git mergetool
說。但這裏是我的了:
$ git mergetool
merge tool candidates: meld kdiff3 tkdiff xxdiff meld gvimdiff emerge opendiff emerge vimdiff
No files need merging
$ git mergetool opendiff
merge tool candidates: meld kdiff3 tkdiff xxdiff meld gvimdiff emerge opendiff emerge vimdiff
opendiff: file not found
那麼是否意味着我必須安裝什麼東西?
如果我只想從git pull
的版本覆蓋所有內容,該怎麼辦?
有關信息,請參閱還http://stackoverflow.com/ questions/1064103/is-gits-auto-detection-scripted-or-it-it-within-some-git-executable(關於Git提議並搜索合併工具的方式) – VonC 2009-09-17 04:06:09
您可以看到安裝/設置示例一個'mergetool'在這裏:http://stackoverflow.com/questions/825478/how-to-set-araxis-as-diff-merge-tool-for-msys-git – VonC 2009-09-17 04:09:18