Git mergetool generates unwanted .orig files

前端 未结 10 2028
予麋鹿
予麋鹿 2020-11-30 16:16

When I do a merge conflict resolution with Kdiff3 (and other merge tool I tried) I noticed that on resolution a *.orig file is created. Is there a way for it to

10条回答
  •  甜味超标
    2020-11-30 16:39

    Windows:

    1. in File Win/Users/HOME/.gitconfig set mergetool.keepTemporaries=false
    2. in File git/libexec/git-core/git-mergetool, in the function cleanup_temp_files() add rm -rf -- "$MERGED.orig" within the else block.

提交回复
热议问题