After the merge, I want to use git mergetool to solve the problem, but it does not work with any tool that I specify:
git mergetool
merge tool candidates: opendiff kdiff3 tkdiff xxdiff meld tortoisemerge gvimdiff diffuse ecmerge p4merge araxis bc3 vimdiff emerge
Merging:
main.c
Normal merge conflict for 'main.c':
{local}: modified file
{remote}: modified file
Hit return to start merge resolution tool (kdiff3):
merge of main.c failed
The tool that I specify does not start at all.
Conclusion
git config --list
merge.tool = kdiff3
core.repositoryformatversion = 0
core.filemode = true
core.bare = false
core.logallrefupdates = true
source share