博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Git: There is no tracking information for the current branch.
阅读量:4099 次
发布时间:2019-05-25

本文共 388 字,大约阅读时间需要 1 分钟。

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

git pullThere is no tracking information for the current branch.Please specify which branch you want to merge with.

对于这种情况有两种解决办法,就比如说要操作master吧,一种是直接指定远程master:

git pull origin master

另外一种方法就是先指定本地master到远程的master,然后再去pull:

git branch --set-upstream-to=origin/master mastergit pull

这样就不会再出现“There is no tracking information for the current branch”这样的提示了。

转载地址:http://fshii.baihongyu.com/

你可能感兴趣的文章
Spring的IoC(依赖注入)原理
查看>>
Guava快速入门
查看>>
Java编程基础:static的用法
查看>>
Java编程基础:抽象类和接口
查看>>
Java编程基础:异常处理
查看>>
Java编程基础:了解面向对象
查看>>
新一代Java模板引擎Thymeleaf
查看>>
Spring MVC中使用Thymeleaf模板引擎
查看>>
Spring Boot构建简单的微博应用
查看>>
Spring处理表单提交
查看>>
Spring MVC异常处理
查看>>
Leetcode 1180. Count Substrings with Only One Distinct Letter [Python]
查看>>
PHP 7 的五大新特性
查看>>
php使用 memcache 来存储 session
查看>>
php实现socket(转)
查看>>
PHP底层的运行机制与原理
查看>>
深入了解php底层机制
查看>>
PHP中的stdClass 【转】
查看>>
XHProf-php轻量级的性能分析工具
查看>>
PHP7新特性 What will be in PHP 7/PHPNG
查看>>