1、Git上传warning:

警告信息:warning: LF will be replaced by CRLF in mingw64/lib/tcl8.6/tzdata/Pacific/Rarotonga.
The file will have its original line endings in your working directory
解决办法:git config core.autocrlf false 执行完此命令,重新执行 git add . 最后的 小点儿不要忘记哦
2、Git上传错误:

错误信息:To https://github.com/..........git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/......git'
解决办法:$ git pull --rebase origin master
执行完之后重新执行:$ git push origin master
完美解决!
本文解决了两个常见的Git上传问题。一是警告信息:LF将被CRLF替换的问题,通过设置gitconfig core.autocrlf false解决。二是上传失败错误:推送某些引用到远程仓库失败,通过执行git pull --rebase origin master后再执行git push origin master解决。
1万+

被折叠的 条评论
为什么被折叠?



