1冰抢、you are not allowed to push code to protected branches on this project
解決辦法:setting里面去掉受保護(hù)
2赌厅、git提交本地報錯:
Git error: hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused b
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解決辦法:
第一步:可以通過如下命令進(jìn)行代碼合并【注:pull=fetch+merge]
git pull --rebase origin master
1執(zhí)行上面代碼后可以看到本地代碼庫中多了README.md文件
第二步:此時再執(zhí)行語句 git push -u origin master即可完成代碼上傳到github
3往果、remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://********
解決:git config --system --unset credential.helper
4刑然、
QQ截圖20180926161709.png
jiejue
解決:git config --global http.postBuffer 524288000
原因:大概意思是http.postBuffer太小武花,需要設(shè)置更大的值袄琳,應(yīng)該是我們項目中用到的第三方靜態(tài)庫有400多MB大小的單個.a文件冰肴。上面的那個命令,將http.postBuffer設(shè)置為500MB大小后奶赠,可以正常push操作了鱼填。
5、
微信圖片_20190402185315.png
6毅戈、記Git報錯-refusing to merge unrelated histories
git pull origin master --allow-unrelated-histories