git 新建分支push和pull 提示If you wish to set tracking information for this branch you can do so with

当你新建一个分支,并且进出分支时候,此时本地防止还没有和远程分支产生关联,此时git push 或git pull时候会提示:

 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> bandgars_new_20230831

你此时使用   git branch --set-upstream-to=origin/bandgars_new_20230831 bandgars_new_20230831 会提示远程分成 bandgars_new_20230831 不存在
所以,你先要把分支推送到远端才可以,使用
git push origin bandgars_new_20230831推送到远端,然后再使用上面命令关联即可。

请先 登录 后评论
  • 0 关注
  • 0 收藏,584 浏览
  • shitian 提出于 2023-08-31 17:33

相似问题