原文:更新GitHub项目出现There is no tracking information for the current branch. Please specify which branch you want to merge with. 怎么解决

git pull命令用于从另一个存储库或本地分支获取并集成 整合 。git pull命令的作用是:取回远程主机某个分支的更新,再与本地的指定分支合并,它的完整格式稍稍有点复杂。 如果当前分支只有一个追踪分支,连远程主机名都可以省略。 git pull 上面命令表示,当前分支自动与唯一一个追踪分支进行合并。 当出现上面的情况时,我们可以有两种解决方法 对于这种情况有两种解决办法,就比如说要操作mas ...

2018-12-19 11:03 0 4257 推荐指数:

查看详情

git pull提示You are not currently on a branch. Please specify which

  在想拉取最新的git代码时提示要输入远端分支。具体提示见以下:      这里的原因是因为不在master分支,在tag或者其它分支上。使用git branch查看,目前在一个tag上。   这里解决方式有2种。   或者更简单的方式,直接指定分支 ...

Thu Oct 21 20:03:00 CST 2021 0 5540
git pull报错:There is no tracking information for the current branch

是因为本地分支和远程分支没有建立联系 (使用git branch -vv 可以查看本地分支和远程分支的关联关系) .根据命令行提示只需要执行以下命令即可 即,解决方法: 或 git branch –set–upstream new ...

Thu Oct 12 06:54:00 CST 2017 0 23315
fatal: You are not currently on a branch. 问题解决

fatal: You are not currently on a branch. 解决 注:亲试,这种方法会把本地的修改给冲掉,所以事先一定要备份下文档,之后覆盖,重新上传或pull即可;解决方法: 首先git checkout -b temp 其次git checkout master ...

Fri Feb 22 08:03:00 CST 2019 0 6083
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM