zoukankan      html  css  js  c++  java
  • git pull 代码很慢的问题

    办公环境调整,之前开发机是和自己的电脑放同一网段内的,现在开发机放至到本地其他网段内,造成pull 代码很慢的问题,在网上查了一下

    以下是原文,链接为 http://blog.sina.com.cn/s/blog_63eb3eec0101ez6e.html

    最近装了ubuntu系统,git pull push 代码的时候非常慢,上网查了一下,发现问题所在,以下是原文

    Some of our developers installed Ubuntu 10.04 and they are experiencing slow remote operation specifically git fetch, pull and push. I first suspected an error in the git server setup using indefero but the other users on Ubuntu 9.04 did not have this problem.

    Investigating further, I found that using ssh to connect to the git server was also slow which could be the cause of the problem. To find out what happens during ssh connection I did:

    ssh -v git@git-server


    This revealed that ssh was spending a lot of time on using gssapi-with-mic.
    To turn this off, I modified the file /etc/ssh/ssh_config to add

    GSSAPIAuthentication no


    Sure enough, the git operations improved and it has now stopped becoming a chore to do git fetch, pull and push.

    I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.

    意思是需要使用ssh来连接git 服务器,
    使用命令 ssh -v git@git-server
    之后打开

    /etc/ssh/ssh_config
    找到
     GSSAPIAuthentication no 这句话,将其放开
    OK,再试一下,果然快了很多

    备注:按上面修改了以后,还是很慢,于是就修改了这个文件里的另一个配置

    UseDNS yes修改为

    UseDNS no

    OK 好了

    再说一句,运维兄果然很给力.

  • 相关阅读:
    分享一个详情页
    ES6初探,变量的声明
    ES6初探,什么是ES6
    提问回顾
    个人阅读&个人总结
    结对项目-数独程序扩展
    个人作业Week3-案例分析
    个人作业Week2-代码复审
    个人作业1
    【个人项目】数独
  • 原文地址:https://www.cnblogs.com/debmzhang/p/3729647.html
Copyright © 2011-2022 走看看