gpt4 book ai didi

ssh - 在 Sourcetree Windows 中为 mercurial 存储库启用 SSH 压缩

转载 作者:行者123 更新时间:2023-12-02 13:48:49 25 4
gpt4 key购买 nike

我在 Windows 7 - Sourcetree 1.4.1.0 - Embedded Mercurial 2.6.1

Target 是托管在 bitbucket 上的私有(private) mercurial 存储库。

如何启用 SSH 压缩以使我的交易更快?

最佳答案

快速谷歌搜索产生this document :

Edit the Mercurial global configuration file (~/.hgrc). Add the following line to the UI section:

ssh = ssh -C

When you are done the file should look similar to the following:

[ui]
# Name data to appear in commits
username = Mary Anthony <manthony@atlassian.com>
ssh = ssh -C


在 Windows 上,Mercurial 设置文件位于此处:
C:\Users\{username}\AppData\Local\Atlassian\SourceTree\hg_local\Mercurial.ini
该文件的内容实际上不会被更改,正如其标题所解释的那样:
; System-wide Mercurial config file.
;
; !!! Do Not Edit This File !!!
;
; This file will be replaced by the installer on every upgrade.
; Editing this file can cause strange side effects on Vista.
;
; http://bitbucket.org/tortoisehg/stable/issue/135
;
; To change settings you see in this file, override (or enable) them in
; your user Mercurial.ini file, where USERNAME is your Windows user name:
;
; XP or older - C:\Documents and Settings\USERNAME\Mercurial.ini
; Vista or later - C:\Users\USERNAME\Mercurial.ini

我没有Mac,所以无法测试,但是 this Atlassian answer声明此文件在 Mac 上的位置是:
/Applications/SourceTree.app/Contents/Resources/mercurial_local/hg_local/

关于ssh - 在 Sourcetree Windows 中为 mercurial 存储库启用 SSH 压缩,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21997004/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com