我使用react-native-git-upgrade来升级我的React Native项目,这个过程留下了一些冲突分隔符需要我现在解决:
DEAD_CODE_STRIPPING = NO;
<<<<<<< ours
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../node_modules/react-native/React/**",
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
"$(SRCROOT)/../node_modules/react-native-video",
);
INFOPLIST_FILE = "MyAwesomeApp/Info.plist";
=======
INFOPLIST_FILE = MyAwesomeApp/Info.plist;
>>>>>>> theirs
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
"-lc++",
);
但是 Git 并没有显示这些冲突:
git status
没有显示任何“未合并路径”。而 git mergetool
则会提示“没有需要合并的文件”。因此,我只能通过手动删除/保留行来解决这些冲突。是否有一种方法可以在这里使用 Git 合并工具呢?
当我使用正确的路径运行命令时,会出现以下错误信息:
此消息显示是因为未配置“merge.tool”。请参阅“git mergetool --tool-help”或“git help config”以获取更多详细信息。 'git mergetool' 现在将尝试使用以下工具之一: tortoisemerge emerge vimdiff 没有文件需要合并
- rex