Prompt to report an error git branch --set-upstream-to=origin/<branch> master

1. The error message is as follows:

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. Solution: Specify the remote branch you want to push or pull

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

Guess you like

Origin blog.csdn.net/weixin_44949068/article/details/129724719