码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-08-15 12:15:58      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:android   blog   http   os   io   文件   for   ar   

网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中.

Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open

[branch "master"]
  remote = origin
  merge = refs/heads/master

bubuko.com,布布扣

 

 

第二种

 

1.在本地工程目录找到config文件(我的是在E:\rocket\rocket\.git);

2.修改config文件内容为:

[core]
    repositoryformatversion = 0
    filemode = false
    logallrefupdates = true
    [branch "master"] 
        remote = origin 
        merge = refs/heads/master 
    [remote "origin"] 
        url = https://github.com/androidzhaoxiaogang/rocket.git   (修改为自己的url)
        fetch = +refs/heads/*:refs/remotes/origin/*

3.再执行pull方法,发现工作ok了

 

解决The current branch is not configured for pull No value for key branch.master.merge found in config,布布扣,bubuko.com

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

标签:android   blog   http   os   io   文件   for   ar   

原文地址:http://www.cnblogs.com/againreborn/p/3914184.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!