Your branch is ahead of 'origin/master' by 1 commitgit
緣由在於你的本地分支高於遠程倉庫一次提交, 解決方式:windows
-- 同步更新 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.curl
緣由在於:lua
CR表明回車(\r) LF表明換行(\n) ,在Dos\Windows平臺下使用 CRLF 結束一行,即\r\n ; 在Max\Linux平臺下是用 LF 結束一行,即\n url
若是Mac和Windows平臺下代碼的更新以及提交,就會出現問題,其解決方式:spa
-- 檢出時將LF轉換爲CRLF, 提交時將CRLF轉換爲LF(windows推薦) $ git config --global core.autocrlf true -- 提交時轉換爲LF,檢出時不轉換(Unix推薦) $ git config --global core.autocrlf input -- 提交檢出均不轉換(沒有跨平臺那一說) $ 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: 62code
緣由在於:上傳文件有大小限制, 解決方式:blog
git config http.sslVerify "false"
Your branch and 'origin/master' have diverged,
and have 1 and 1 different commits each, respectively.ssl
緣由在於: 存在兩種或多種提交,致使本地與遠程不一樣步,好比遠程進行了修改提交,本地在未同步更新的狀況下也進行了提交,相似圖示:rem
首先輸入命令:
git rebase origin/master
再執行命令:
git pull --rebase
最後執行命令:
git push origin master