解决 Git: There is no tracking information for the current branch.的问题

在执行git pull的时候,提示当前branch没有跟踪信息:

解决方案一

指定远程master

git pull origin master

解决方案二

先指定本地master到远程的master,然后再去pull

git branch --set-upstream-to=origin/master master
git pull
公众号
作者:经典鸡翅
微信公众号:经典鸡翅
如果你想及时得到个人撰写文章,纯java的面试资料或者想看看个人推荐的技术资料,可以扫描左边二维码(或者长按识别二维码)关注个人公众号)。
原文地址:https://www.cnblogs.com/jichi/p/14395175.html