美文网首页
Windows git使用

Windows git使用

作者: marshalzxy | 来源:发表于2018-07-04 22:38 被阅读22次

1、windows git的配置文件:在 c:\用户\用户名\.gitconfig下可以直接修改

或者通过 git config --system key=key value设置。

git config --system unset key 来取消。

2、github从2018年2月开始不支持tlsv1.1后,老版本git 出现ssl connect error

使用新版本window git即可。

3、gitclone远端项目时候出现如下报错

error:rpc failed; curl 18 transfer closed with outstanding read data remaining

Fatal:The remote end hung up unexpectedly

Fatal:early eof

原因是curl默认的postbuffer配置太小,将其配置为500M即可。

配置方法有:

法1、git config --system http.postBuffer 524288000

然后用git config --list查看一下配置是否成功。

法2、直接修改.gitconfig文件添加http.postBuffer=524288000

相关文章

网友评论

      本文标题:Windows git使用

      本文链接:https://www.haomeiwen.com/subject/gaoyuftx.html