Since many people want to use github, but have no idea how to link it with eclipse, here is an quick guide. I'm also new to this stuff, so I don't know much. I'm just telling you method that I have learned and it works great for me: Preparing repository 1. First we will install eGit, which is used to connect Eclipse to Github. In Eclipse, go to help --> install software. 2. In "Work With" window, type in "http://download.eclipse.org/egit/updates" (without quotes). Click Add... button next to it. 3. Tick "Eclipse Git Provider" and keep clicking next until you get "Installing Software..." dialog. Now it will take some time to install eGit. When asked, restart eclipse. 4. Go to Window --> Show View --> Other... --> Git --> Git repositories and click OK. You should get new window somewhere. 5. If you have not already, go to Github, create an account and create new repository. 6. On top of your new repository, click "HTTP" and copy contents of window on the right. 7. In Eclipse, right click on your project and select Team --> Share project 8. Select Git --> Next --> Tick "Use or create repository in parent folder of your project --> click on your project --> click "Create Repository" --> click Finish. 9. You will get new entry in Git Repositories window. Click arrow next to it to expand it and right click on remotes --> Create Remote. 10. Select "Configure push" and type any name. Click OK. 11. Under "Push URIs" click "Add..." . 12 Under URI enter text you copied in step 6. Everything should automatically fill in with exception of your password. Enter password you use to log in into github. Tick "store in secure store" to save your password, so you won't have to enter it each time. 13. Click OK and Save. You are now ready. Using repository First you need to commit changes. With committing, you will store your current changes into your local repository. Right click on your repository in "Git Repositories" window and select Commit. Under "message" you type description of your change, and then tick files you want bellow. After committing again right click on repository, select "Push" and click Finish. This will copy all your changes to Github.
Quite funny how you posted this one hour after i started fiddling with EGit I've got everything working, however i cant pull from github. I added the settings branch.master.merge and branch.master.remote, but it just says theres nothing to fetch.
@robin0van0der0v Yes and yes @Butkicker12 what eclipse do you have? Can you try with classic one? @r3Fuze is there something to fetch? That means that someone else must commit data so you can fetch it.
Yes I have. I redownloaded and now this came up. This is what I did: I put in the download address "http://download.eclipse.org/egit/updates" and clicked add this came up but wasnt there before what should i do? http://tinypic.com/r/20kvgbn/7
No this just pops up and didnt before I redownloaded. Dont know what to put there. version: Version: Indigo Service Release 1 Build id: 20110916-0149
Yes I have. I redownloaded and now this came up. This is what I did: I put in the download address "http://download.eclipse.org/egit/updates" and clicked add. This came up but wasnt there before I redownloaded. What should I do/ put in there?
setup github>create repository>download git>setup git>open eclipse>download eGit or whatevers>create repository in your project folder path(using git init>remote add)>refresh eclipse rightclick project>team or whatevs>commit directory or files or whatevs>rightclick project>push changes
I'm very confused where I export / build the actualy jar file. When I try to file>export it like before nothing shows up to allow me to select my git repositories can someone please point me in the right direction in how to compile all this
export>jar>choose files to include on jar(include plugin.yml), choose output dir>create metadata>finish
Netbeans has built-in Git usages requires some setup but much easier than this. Switched from Eclipse to use it