The current branch is not configured for pull No value for key branch.master.merge found in configur
2014-02-23 10:27
866 查看
刚开始接触git,给eclipse安装了git插件,项目出了点问题重检了一下,pull时出现了问题:The current branch is not configured for pull No value for key branch.master.merge found in configur,在stackoverflow上找到了解决方法:
To fix this problem in Eclipse, open the Windows menu and select Show
View / Other / Git Repositories.
From the Git Repositories tab:
expand your local repository
right click on Remote
click on Create Remote...
Remote name = origin
next to IRI press the Change button
CTRL+SPACE on URI
select the remote location
press Finish
press Save and Push
Again, from the Git Repositories tab:
right click on origin
select Configure Fetch...
on Ref mapping press the Edit (Advanced)...
press Add All Branches Spec
select the Force Update checkbox
press Finish
Again, from the Git Repositories tab:
right click on your local repository
select Properties
press Add Entry...
enter the following two keys:
(1)
(2)
完了就可以pull了,如果失败了,可能是这个解决方法有局限性,因为刚开始对git的了解不多;也可能是操作有误。
原文地址:http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-for-key-branch-master-mer
To fix this problem in Eclipse, open the Windows menu and select Show
View / Other / Git Repositories.
From the Git Repositories tab:
expand your local repository
right click on Remote
click on Create Remote...
Remote name = origin
next to IRI press the Change button
CTRL+SPACE on URI
select the remote location
press Finish
press Save and Push
Again, from the Git Repositories tab:
right click on origin
select Configure Fetch...
on Ref mapping press the Edit (Advanced)...
press Add All Branches Spec
select the Force Update checkbox
press Finish
Again, from the Git Repositories tab:
right click on your local repository
select Properties
press Add Entry...
enter the following two keys:
(1)
Key = branch.master.remote Value = origin
(2)
Key = branch.master.merge Value = refs/heads/master
完了就可以pull了,如果失败了,可能是这个解决方法有局限性,因为刚开始对git的了解不多;也可能是操作有误。
原文地址:http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-for-key-branch-master-mer
相关文章推荐
- git更新已經刪除的文件
- linux系统安装git及git常用命令
- 全新安装gitlab后出现504 bad gateway 及提示输入默认帐号错误
- Eclipse中Pull参数问题
- 使用GitHub进行版本管理
- git使用的一些小技巧
- 版本控制系统介绍(itercast学习笔记)
- Git版本控制系统简介(itercast学习笔记)
- 安装Git(Mac、Linux、Windows)(itercast学习笔记)
- Git初始化及仓库创建(itercast学习笔记)
- git学习笔记——查看git历史记录
- Git一些小经验
- Git之`Hello, World`
- git+github创建分支&提交并贡献代码(linux环境)
- 小组级git服务器搭建
- iOS开发Xcode5 SVN配置 使用办法
- Ubuntu & GitHub
- Git 常用命令图