git branch --set-upstream 关联远程分支

git branch --set-upstream 关联远程分支

在这里插入图片描述

遇到这种情况的解决办法:

git branch --set-upstream-to=origin/remote_branch  local_branch
  • origin/remote_branch远程分支 (当前本地分支对应的远程分支)
  • local_branch 是当前本地分支
发布了250 篇原创文章 · 获赞 143 · 访问量 27万+

猜你喜欢

转载自blog.csdn.net/aiwusheng/article/details/102821054