解决The current branch is not configured for pull No value for key branch.master.merge found in config
生活随笔
收集整理的這篇文章主要介紹了
解决The current branch is not configured for pull No value for key branch.master.merge found in config
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
http://blog.csdn.net/androidzhaoxiaogang/article/details/16859099
1.在本地工程目錄找到config文件(我的是在E:\rocket\rocket\.git);
2.修改config文件內(nèi)容為:
[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.再執(zhí)行pull方法,發(fā)現(xiàn)工作ok了
http://blog.csdn.net/lizhongren/article/details/16338731
網(wǎng)上多半都是命令行下的解決方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面這句話添加到配置文件中.
Window->Preference->Team->Git->Configuration->Repository Settings->選擇你的repository,然后點(diǎn)open
[branch "master"]
? remote = origin
? merge = refs/heads/master
?
與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖
總結(jié)
以上是生活随笔為你收集整理的解决The current branch is not configured for pull No value for key branch.master.merge found in config的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: nginx 根据IP 进行灰度发布
- 下一篇: spring自定义标签实现