Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable automatic backups in SourceTree

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.

like image 219
trejder Avatar asked Sep 23 '14 21:09

trejder


1 Answers

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

like image 58
mayo Avatar answered Sep 18 '22 17:09

mayo