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]http://dl2.iteye.com/upload/attachment/0092/0295/6b2e0fd9-bc5a-3c96-bd91-555a46cc17ee.png[/img]
[/img]
打开文件后添加如下代码:
如下图所示:
[img]http://dl2.iteye.com/upload/attachment/0092/0291/ffa24b15-e548-30bd-94fe-68c2e0cab026.png[/img]
图中红色区域的分支名称替换 你们自己分支的名字,我的分支名是“dev”
如果有多个分支,需要添加多段代码,否则,不添加的分支还是无法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]http://dl2.iteye.com/upload/attachment/0092/0295/6b2e0fd9-bc5a-3c96-bd91-555a46cc17ee.png[/img]
[/img]
打开文件后添加如下代码:
[branch "dev"]
remote = origin
merge = refs/heads/dev
如下图所示:
[img]http://dl2.iteye.com/upload/attachment/0092/0291/ffa24b15-e548-30bd-94fe-68c2e0cab026.png[/img]
图中红色区域的分支名称替换 你们自己分支的名字,我的分支名是“dev”
如果有多个分支,需要添加多段代码,否则,不添加的分支还是无法pull。
[branch "dev1"]
remote = origin
merge = refs/heads/dev1
[branch "dev2"]
remote = origin
merge = refs/heads/dev2
经过如上操作,可以解决此问题。