Push eclipse project to GitHub with EGit

后端 未结 3 1785
余生分开走
余生分开走 2020-12-13 15:06

I am successfully pushing my project to GitHub using EGit. My repository is called HelloWorld. My project in eclipse is also called HelloWorld. My problem is when i push the

3条回答
  •  自闭症患者
    2020-12-13 15:37

    The key lies in when you create the project in eclipse.

    First step, you create the Java project in eclipse. Right click on the project and choose Team > Share>Git.

    In the Configure Git Repository dialog, ensure that you select the option to create the Repository in the parent folder of the project.. enter image description here Then you can push to github.

    N.B: Eclipse will give you a warning about putting git repositories in your workspace. So when you create your project, set your project directory outside the default workspace.

提交回复
热议问题