1. warning: LF will be replaced by CRLF in *
原因:因为windows中的换行符为 CRLF, 而在linux中的换行符为LF,所以在执行add . 命令时会出现这个提示信息。
其中的工作原理如下:
解决:
git config --global core.autocrlf false
2. git push error: RPC failed; result=56, HTTP code = 0
报错信息:
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
解决:设置Git的http缓存区大小,解决了这个问题,命令如下:
git config --global http.postBuffer 20M
参考链接:https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf