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

本文提供了一种解决在Eclipse中使用Git时遇到的Pull错误的方法,详细步骤包括配置远程仓库、设置Fetch映射及更新本地分支配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

github虽说挺好用,但对于新手来说,还是个噩梦,比如说对我- - ,搞得乱七八糟,还把之前用来爬微博数据的爬虫给搞没了


这个问题是在Myeclispe 中,右键项目 team 选择pull时报错的,国内很多人都有各自乱七八糟的解答,没几个能用的


在Stackoverflow找到了答案,原题地址 http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-for-key-branch-master-mer


投给了一个只有41票的答案, to me ,this is the best anwser for the question 

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 New Entry...
  • enter the following two keys:

(1)

Key = branch.master.remote
Value = origin

(2)

Key = branch.master.merge
Value = refs/heads/master
share improve this answer

翻译过后如下(六级还没过,别怪我)

在Eclispe中解决这问题,点击windows,选择show view ,other ,Git Repositories

在 Git Repositories 选项中

1.展开你的本地项目库

2.右击Remote

3.点击 Create Remote 

4.Remote name = origin

5.点击URI 的change 按钮

6.

  • CTRL+SPACE on URI (快捷键)
7.选择 remote location

8.finish ,选择save and push

就翻译这些,剩下的大同小异,各位应该能看懂,有不明白的留言

注意 

  • select the Force Update checkbox 必须要打勾

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值