MyEclipse通过EGit将代码提交到GitHub

今天把Myeclipse和Github整合了一下,终于能够成功运行了

遇到的问题:

    当进行pull操作的时候,提示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'

        完美成功

知识共享许可协议
《MyEclipse通过EGit将代码提交到GitHub》常伟华 创作。
采用 知识共享 署名-相同方式共享 3.0 中国大陆 许可协议进行许可。
相邻依据:发表时间
  • 多说评论
  • 签名
  • 新浪微博
  • 默认评论
  • Tab Header 5

3 条评论 / 点击此处发表评论

Tab Content 5

开发技术


开发平台和工具

sitemap     157.77ms