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 @ 2014-04-28 02:02  花儿笑弯了腰  阅读(1038)  评论(0编辑  收藏  举报