tankb52
V2EX  ›  问与答

为什么在 SecureCRT 中 git checkout <branch>要很久,而 PuTTY 里面就很快?

  •  
  •   tankb52 · Dec 22, 2020 · 1811 views
    This topic created in 1971 days ago, the information mentioned may be changed or developed.

    同样是用 SSH2 登录到公司服务器上,git checkout <branch> 时,PuTTY 是几十秒,SecureCRT 就要 15 分钟以上。
    同事用的 xShell 和 SecureCRT 也很快,所以肯定是我的 SecureCRT 设置有问题。

    但我实在排查不出来了,难道要把 SecureCRT 清掉配置重来?

    3 replies    2020-12-23 19:10:26 +08:00
    julyclyde
        1
    julyclyde  
       Dec 23, 2020
    ssh 协议的 git 吗?
    建议单独执行 ssh -v 试一下看看区别
    tankb52
        2
    tankb52  
    OP
       Dec 23, 2020
    @julyclyde
    我试了,PuTTY 和 SecureCRT 都是下面这个结果。
    OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016

    不过我用 git gc 清理了一下,现在切换快了不少。

    虽然我还是不明白为什么之前 PuTTY 就是比 SecureCRT 快 ,不都是远程登录到同一个服务器上吗?
    julyclyde
        3
    julyclyde  
       Dec 23, 2020
    我的意思是,用 ssh 代替 git 在服务器上执行一下

    我在猜测可能是 ForwardAgent 的问题,但是需要 ssh -v 的结果
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3012 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 06:52 · PVG 14:52 · LAX 23:52 · JFK 02:52
    ♥ Do have faith in what you're doing.