Disable automatic backups in SourceTree

流过昼夜 提交于 2019-12-19 08:09:09

问题


I'm using SourceTree together with TortoiseDiff/Merge. Every time I save a file there, after resolving all conflicts, SourceTree handles everything perfectly, except for the fact, that it always create a backup file [name].orig.

This is extremely irritating for me, as I have to Ctrl+Del such file each time and confirm annoying dialogs.

How can I get rid of this?

I thought, that this will be as simple as unchecking Tools > Options > Keep backups on destrictive operations. But, apparently this is not enough or this option controls some other behaviour of SourceTree.


回答1:


As we talk.. This can be caused by a git settings instead of SourceTree/another tool settings.

Try doing this:

git config --global mergetool.keepBackup false

From: Git mergetool generates unwanted .orig files



来源:https://stackoverflow.com/questions/26004673/disable-automatic-backups-in-sourcetree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!