Github问题

错误提示:
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 origin master). 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'

        完美成功

猜你喜欢

转载自cyf0110.iteye.com/blog/1897776