提示报错git branch --set-upstream-to=origin/<branch> master

1、报错信息如下:

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

2、解决方法:指定想要push或者pull的远程分支

// 第一步:
git pull origin master
// 第二步
git push origin master

猜你喜欢

转载自blog.csdn.net/weixin_44949068/article/details/129724719