Updates were rejected because the tip of your current branch is behind 問題出現解決方案


提供如下幾種方式:

1.使用強制push的方法(多人協作時不可取):

git push -u origin master -f

2.push前先將遠程repository修改pull下來

git pull origin master

git push -u origin master

3.不想merge遠程和本地修改,可以先創建新的分支

git branch [name]

git push -u origin [name]

 

尊重原創,學習自簡書.


免責聲明!

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



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