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命令来操作就要设置一下分支的信息。

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