其他分享
首页 > 其他分享> > git--记录文档

git--记录文档

作者:互联网

报错1:

git clone https://github.com/liferay/liferay-portal.git
Cloning into 'liferay-portal'...
fatal: the remote end hung up unexpectedly

解决办法:

这个错误,原因可能是网速慢,文件大
可以尝试以下措施:

将Http缓存设置大一些,比如1G:git config --global http.postBuffer 1048576000,或者3G 3194304000
设置git最低速度

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

 

问题2:

每次git命令都需要输入用户名密码

解决办法:

git config --global credential.helper store
待下一次提交代码的时候,输入了正确的用户名和密码,之后就不需要输入用户名密码

 参考文档:https://blog.csdn.net/weixin_43438052/article/details/112568733

标签:git,http,--,global,文档,config,liferay
来源: https://www.cnblogs.com/lutt/p/16244015.html