1、如何建立本地分支和远程分支的链接关系?

 
具体场景在多人协作那一节,下面是命令、选项和参数
If you wish to set tracking information for this branch you can do so with:
 
    git branch --set-upstream dev origin/<branch>
 

git pull也失败了,原因是没有指定本地dev分支与远程origin/dev分支的链接,根据提示,设置dev和origin/dev的链接:

$ git branch --set-upstream dev origin/dev
 
2、如何查看本地分支和远程分支的链接关系?
 
有两种方法可查到,如下:
  1. 1git branch -vv 
 
2、git config --list 查看branch的设置接口





相关文章:

  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2022-02-08
  • 2022-02-08
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案