在 SourceTree 中禁用自动备份

编程入门 行业动态 更新时间:2024-10-25 22:26:03
本文介绍了在 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 > 一样简单.选项 >保留对限制性操作的备份.但是,显然这还不够,或者这个选项控制了 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 中禁用自动备份

本文发布于:2023-10-28 13:39:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1536791.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自动备份   SourceTree

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!