问题
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