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

来源:互联网 发布:网络兼职骗局信誉代刷 编辑:程序博客网 时间:2024/05/01 09:15

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

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

[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/*

0 0