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

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]


[/img]

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



如下图所示:



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

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


经过如上操作,可以解决此问题。

猜你喜欢

转载自yclovesun.iteye.com/blog/1987785