原文:git pull报错:There is no tracking information for the current branch

是因为本地分支和远程分支没有建立联系 使用git branch vv 可以查看本地分支和远程分支的关联关系 .根据命令行提示只需要执行以下命令即可 即,解决方法: 或 git branch set upstream new origin new new为新建分支名 这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可 否则的话, 你必须每次都这样做: ...

2017-10-11 22:54 0 23315 推荐指数:

查看详情

git pull没有指定branch报错

执行git pull或者git push的时,有时候会出现如下报错: 我们先来看看当前分支状态: 当前所在的linux_c++分支虽然与远程linux_c++同名,但实际上,这个分支并不是origin/linux_c++分支的追踪分支,所以当直接用git pull ...

Thu May 10 04:50:00 CST 2018 0 3145
更新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 上面命令表示,当前分支自动与唯一一 ...

Wed Dec 19 19:03:00 CST 2018 0 4257
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM