原文:上傳至gitlab—— 本地git出現fatal: The current branch develop has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin develop 的問題

git 發生: 具體fatal錯誤如圖: 這個錯誤就是 表示本地分支與遠程分支之間沒有連接起來。 解決方法:只需要在輸入git push u origin develop 這個develop是遠程分支名 , 因為本身我就在本地的develop分支上面,所以可以直接push,如下圖,成功。如果本地不在develop分支上,可以先git checkout develop切換分支至本地develop分支 ...

2020-04-08 12:02 0 2368 推薦指數:

查看詳情

git branch --set-upstream 本地關聯遠程分支

最近使用git pull的時候多次碰見下面的情況: There is no tracking information for the current branch.Please specify which branch you want to merge with.See git ...

Tue Oct 17 05:19:00 CST 2017 0 54766
git push --set-upstream origin

設置本地分支追蹤遠程分支 之后就可以直接使用git push提交代碼 ...

Thu Aug 23 22:38:00 CST 2018 0 7334
git push --set-upstream

我在本地建了一個分支wangxiao,開發完之后,提交代碼 git add .git commit -m '注釋'git push出現下面的問題,這個意思是:當前分支沒有與遠程分支關聯。 因此導致了提交代碼失敗。 MacBook-Pro-5:web-crm wangxiao$ git ...

Tue Oct 23 23:07:00 CST 2018 0 11211
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM