在SourceTree中禁用自动备份 [英] Disable automatic backups in SourceTree

查看:213
本文介绍了在SourceTree中禁用自动备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SourceTree和TortoiseDiff/Merge.每次我在这里保存文件后,在解决所有冲突之后,SourceTree都会完美地处理所有事情,但事实是,它总是创建一个备份文件[name].orig.

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.

这对我来说非常烦人,因为我每次必须 Ctrl + Del 这样的文件并确认烦人的对话框.

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

我该如何摆脱呢?

我认为,这就像取消选中Tools > Options > Keep backups on destrictive operations一样简单.但是,显然这还不够,或者此选项控制SourceTree的其他行为.

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.

推荐答案

正如我们所说的那样. 这可能是由于git设置而不是SourceTree/其他工具设置引起的.

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

尝试这样做:

git config --global mergetool.keepBackup false

git config --global mergetool.keepBackup false

发件人: Git mergetool生成不需要的.orig文件

这篇关于在SourceTree中禁用自动备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆