The current branch is not configured for pull No value for key branch.master.merge found in configur

刚开始接触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)

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值