码迷,mamicode.com
首页 > 其他好文 > 详细

git 本地创建分支和远程分支关联

时间:2019-08-26 18:00:55      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:ati   inf   远程分支   track   切换   ack   eve   format   创建   

本地切换并创建新分支

git checkout -b ‘doclever_201909‘

拉取远程分支

git pull

报错 here is no tracking information for the current branch.

根据提示输入

git branch --set-upstream-to=origin/doclever_201909 doclever_201909

继续 git pull 成功

git 本地创建分支和远程分支关联

标签:ati   inf   远程分支   track   切换   ack   eve   format   创建   

原文地址:https://blog.51cto.com/13496570/2432691

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!