Monday, 19 August 2013

how to put an eclipse project into github

how to put an eclipse project into github

I have an empty repo in git hub. I have a project full of code in Eclipse.
I have the EGit plugin installed in eclipse.
If I right click on the project, and say share, then select git, it only
gives the option to create a local repo - no ability to select a remote
one to check the code into or to clone.
This seems like a massive omission in the plugin.
Not sure what to do now. I could install an external git command line, and
do it all from there, but kind of defeats the object of the git plugin. I
guess I need to clone the emtpy repo in an emtpy dirctory using the git
command line, then copy all my project over using file explorer, then add,
commit and push all the files to the repo. Then i guess I need to create a
new project in eclipse, and try and get it to check the project out from
scratch from git, then delete the old project. Not sure which files I have
to avoid copying though. Surely there is an easier way?
Any ideas?

No comments:

Post a Comment