git遠程操作報錯git branch --set-upstream-to=origin/ master

報錯信息如下

There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master

解決方法

git branch --set-upstream-to=origin/master  master 

這是因爲沒有指定分支到git倉庫上,想要使用git pull 和 git push命令來操作就要設置一下分支的信息。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章