Fork me on GitHub

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 configuration

方法1:
        Go to Window > Preferences > Team > Git > Configuration.
        Select the Repository Settings tab and then the repository that represents your project.
        Click "New Entry..."
        The key is remote.origin.url
        The value is the url you copy from github. It's usually offered predominantly on whichever site you register with.

方法2
        You could do git pull origin master to tell git the explicit branch you want to pull or you add this to your .git/config:
            [branch "master"]
                remote = origin
                merge = refs/heads/master
When you push to master for the first time, add the -u switch (git push -u originmaster). This will set everything up automatically.

            因为使用的是Myeclipse,而不是直接git命令,放弃

方法3:

        Expand your git repository tree from 'Git Repositories' view.
        Right click on 'Remotes' and select 'Create Remote'
        Select radio button 'Configure fetch' -> 'Ok'
        Select 'Change' opposite 'URI' text box
        Enter your git repository details and click 'Finish'
        Select 'Save'

Refer:
http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-for-key-branch-master-mer
http://blog.sina.com.cn/s/blog_a73687bc0101dak2.html

posted @   花儿笑弯了腰  阅读(1044)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示