Push eclipse project to GitHub with EGit

后端 未结 3 1786
余生分开走
余生分开走 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.

    0 讨论(0)
  • 2020-12-13 15:49

    I have the same issue and solved it by reading this post, while solving it, I hitted a problem: auth failed.

    And I finally solved it by using a ssh key way to authorize myself. I found the EGit offical guide very useful and I configured the ssh way successfully by refer to the Eclipse SSH Configuration section in the link provided.

    Hope it helps.

    0 讨论(0)
  • 2020-12-13 15:57

    Simple Steps:

    -Open Eclipse.

    • Select Project which you want to push on github->rightclick.
    • select Team->share Project->Git->Create repository->finish.(it will ask to login in Git account(popup).
    • Right click again to Project->Team->commit. you are done
    0 讨论(0)
提交回复
热议问题