Git 常见问题汇总

Your branch is ahead of 'origin/master' by 1 commit

原因在于你的本地分支高于远程仓库一次提交, 解决方式:

-- 同步更新
git push origin master

warning: LF will be replaced by CRLF in main.lua
The file will have its original line endings in your working directory.

原因在于:

CR代表回车(\r) LF代表换行(\n) ,在Dos\Windows平台下使用 CRLF 结束一行,即\r\n ; 在Max\Linux平台下是用 LF 结束一行,即\n 

如果Mac和Windows平台下代码的更新以及提交,就会出现问题,其解决方式:

--方式1: 提交检出均不转换 
git config --global core.autocrlf false

更多参考: https://www.jianshu.com/p/450cd21b36a4

error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: The remote end hung up unexpecteWriting objectdlys:  62

原因在于:上传文件有大小限制, 解决方式:

git config http.sslVerify "false"

猜你喜欢

转载自www.cnblogs.com/SkyflyBird/p/10726600.html