git操作可能遇到的問題


問題1:
解決git 出現 Your account has been blocked問題
使用git 出現 Your account has been blocked
無法從遠程pull代碼下來
解決:
$ git push origin master

問題2:
GitLab: Your account has been blocked.
fatal: Could not read from remote repository.:
git 提交時出現以上問題
解決:
$ git remote set-url origin git@git.58haha.com:web/58haha.git

問題3:
error: unable to resolve reference refs/remotes/origin/yst/downline: Not a directory
From git.58haha.com:web/58haha
 ! [new branch]      58haha/downline -> origin/58haha/downline  (unable to update local ref)
error: some local refs could not be updated; try running
 'git remote prune origin' to remove any old, conflicting branches
解決:
$ git remote prune origin

問題4:
git stash pop后出現沖突
git stash pop后,如果出現沖突的話,不會被drop掉,修改還在
解決:
$ git reset --hard HEAD


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM