欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

The current branch is not configured for pull No value for key branch.dev.merge

程序员文章站 2022-05-11 17:25:29
...
eclipse git pull 时报错:
The current branch is not configured for pull
No value for key branch.dev.merge found in configuration

解决方法:
在eclipse如下操作:
windows->preferences->team->git->configuration->repository Settings

[img]

The current branch is not configured for pull No value for key branch.dev.merge 
            
    
    博客分类: eclipse egit  pull eclipsegitpull 
[/img]

打开文件后添加如下代码:
[branch "dev"]
	remote = origin
	merge = refs/heads/dev



如下图所示:

The current branch is not configured for pull No value for key branch.dev.merge 
            
    
    博客分类: eclipse egit  pull eclipsegitpull 

图中红色区域的分支名称替换 你们自己分支的名字,我的分支名是“dev”

如果有多个分支,需要添加多段代码,否则,不添加的分支还是无法pull。
[branch "dev1"]
	remote = origin
	merge = refs/heads/dev1
[branch "dev2"]
	remote = origin
	merge = refs/heads/dev2


经过如上操作,可以解决此问题。
  • The current branch is not configured for pull No value for key branch.dev.merge 
            
    
    博客分类: eclipse egit  pull eclipsegitpull 
  • 大小: 11.6 KB
  • The current branch is not configured for pull No value for key branch.dev.merge 
            
    
    博客分类: eclipse egit  pull eclipsegitpull 
  • 大小: 60.3 KB
相关标签: eclipse git pull