用VI修复Git-UU

用VI修复Git-UU,git,kdiff3,Git,Kdiff3,当我从远程提取代码时,git会在一个文件上报告冲突 UU hello.cpp 如果我使用git mergetool hello.cpp并修复冲突,那么git将显示以下内容:默认的mergetool是kdiff3 M hello.cpp 但是,如果我使用vi来修复冲突,git仍然会显示以下内容 UU hello.cpp M hello.cpp 我必须使用git add hello.cpp来显示以下内容 UU hello.cpp M hello.cpp kdiff3在完成合并后做了什么,

当我从远程提取代码时,git会在一个文件上报告冲突

UU hello.cpp

如果我使用
git mergetool hello.cpp
并修复冲突,那么git将显示以下内容:默认的mergetool是kdiff3

M  hello.cpp
但是,如果我使用vi来修复冲突,git仍然会显示以下内容

UU hello.cpp
M hello.cpp
我必须使用
git add hello.cpp
来显示以下内容

UU hello.cpp
M hello.cpp

kdiff3在完成合并后做了什么,这样,如果我使用vi进行合并,git将显示
M
,而不是
UU

kdiff3在完成合并后会显示一个“git add”。您可以(并且确实)使用vi做同样的事情来修复冲突和命令行。请参阅“git帮助合并”中的“如何解决冲突”

kdiff3在完成时执行“git添加”。您可以(并且确实)使用vi做同样的事情来修复冲突和命令行。请参阅“git帮助合并”中的“如何解决冲突”