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

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

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

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

第二种

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了

时间: 2024-07-29 05:57:43

解决The current branch is not configured for pull No value for key branch.master.merge found in config的相关文章

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found in configuration 如图: 这是因为 在用gui创建分支的时候 config文件没有创建branch 在config文件加上 [branch "xxx"] remote = origin merge = refs/heads/xxx 即可 eclipse git 报错:th

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

github虽说挺好用,但对于新手来说,还是个噩梦,比如说对我- - ,搞得乱七八糟,还把之前用来爬微博数据的爬虫给搞没了 这个问题是在Myeclispe 中,右键项目 team 选择pull时报错的,国内很多人都有各自乱七八糟的解答,没几个能用的 在Stackoverflow找到了答案,原题地址 http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-fo

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

网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中. Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open [branch "master"]  remote = origin  merge = refs/heads/master 第二种 1.在本地

git 出现 The current branch is not configured for pull No value for key branch.master.merge found in configuration

以下是我在网上找到的不错的文章,我参考后已解决我的问题: http://my.oschina.net/robinsonlu/blog/144085 http://www.cnblogs.com/zhanglanyun/archive/2013/06/05/3119335.html http://blog.csdn.net/androidzhaoxiaogang/article/details/16859099

依据错误原理解决Hibernate执行出现No CurrentSessionContext configured!错误

(1)异常信息例如以下: 严重: Servlet.service() for servlet action threw exception java.lang.RuntimeException: <u>No CurrentSessionContext configured!</u> at com.lc.utils.HibernateUtil.executeQuery(HibernateUtil.java:56) at com.lc.service.UsersService.chec

2014-08-26 解决HttpContext.Current.Session在ashx文件中出现“未将对象引用设置到对象的实例”的问题

今天是在吾索实习的第35天. 最近在使用HttpContext.Current.Session来获取Session["..."]的值时,常常会弹出错误——“未将对象引用设置到对象的实例”. 所以,在网上搜索了一番,发现如下解决方法: 引用:using System.Web.SessionState; 让要用到HttpContext.Current.Session的继承IReadOnlySessionState.如:public class {ClassName}: IHttpHandl

根据错误原理解决Hibernate运行出现No CurrentSessionContext configured!错误

(1)异常信息如下: 严重: Servlet.service() for servlet action threw exception java.lang.RuntimeException: <u>No CurrentSessionContext configured!</u> at com.lc.utils.HibernateUtil.executeQuery(HibernateUtil.java:56) at com.lc.service.UsersService.checkU

基于Linux解决登录ssh客户端失败问题—sshd error: could not load host key

当你ssh远程登录时,会发现ssh登录界面刚打开就会闪退,在查看主机日志消息中,就会看到如下错误: 然而问题的根源也就是这三个文件,无法正常加载ssh主机密钥. 而我们只需要将有问题的文件删除,然后重启服务即可,命令如下: rm -rf /etc/ssh/ssh*key //删除/etc/ssh/下ssh开头key结尾中间爱啥啥的文件 systemctl restart sshd //重启sshdfuw 最后重新登录ssh即可 原文地址:https://www.cnblogs.com/yuan9

【Git使用具体解释】Egit使用过程中遇到的问题及解决的方法

1.   Git错误non-fast-forward后的冲突解决 问题(Non-fast-forward)的出现原因在于:git仓库中已经有一部分代码,所以它不同意你直接把你的代码覆盖上去.于是你有2个选择方式: 1.强推,即利用强覆盖方式用你本地的代码替代git仓库内的内容 git push –f 假设你用的是Egit则能够在推送界面选择"Force Update All Specs"就可以,例如以下图: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi