{"id":20092038,"url":"https://github.com/maxkratz/how-to-eclipse-with-github","last_synced_at":"2025-06-23T19:35:40.844Z","repository":{"id":143531537,"uuid":"94029062","full_name":"maxkratz/How-to-Eclipse-with-Github","owner":"maxkratz","description":"A tutorial on how to use Eclipse with GitHub.","archived":false,"fork":false,"pushed_at":"2024-09-08T14:42:20.000Z","size":2279,"stargazers_count":35,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-01T21:47:33.613Z","etag":null,"topics":["eclipse","git","github","tutorial"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxkratz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-11T20:09:08.000Z","updated_at":"2025-05-27T20:14:42.000Z","dependencies_parsed_at":"2024-11-13T16:37:41.461Z","dependency_job_id":"18e7753b-6a3e-485a-9198-47927021d1b5","html_url":"https://github.com/maxkratz/How-to-Eclipse-with-Github","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxkratz/How-to-Eclipse-with-Github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2FHow-to-Eclipse-with-Github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2FHow-to-Eclipse-with-Github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2FHow-to-Eclipse-with-Github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2FHow-to-Eclipse-with-Github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxkratz","download_url":"https://codeload.github.com/maxkratz/How-to-Eclipse-with-Github/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkratz%2FHow-to-Eclipse-with-Github/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261543873,"owners_count":23174825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eclipse","git","github","tutorial"],"created_at":"2024-11-13T16:35:38.900Z","updated_at":"2025-06-23T19:35:40.823Z","avatar_url":"https://github.com/maxkratz.png","language":null,"readme":"# How to use Eclipse with GitHub\n\nThis is a tutorial on how to use Eclipse with GitHub.\n\n\u003e [!NOTE]  \n\u003e I've created this repository/tutorial a few years ago.\n\u003e Although it shows a valid way to use Eclipse with GitHub, I would always prefer an external Git client (e.g., [GitKraken](https://www.gitkraken.com/)) these days.\n\n\n## Requirements\n\nThe latest version of Eclipse can be downloaded from [here](https://www.eclipse.org/downloads/) and of course a [GitHub account](https://github.com) is needed.\n\n\n## First Step: Install EGit in Eclipse\n\nFor uploading code from Eclipse, the `egit-plugin` is needed. \n  \n* In Eclipse, go to **Help/Install new Software...**.\n* Paste `http://download.eclipse.org/egit/updates` in **Work with:** and click **Add**.\n* Select all of the options and click **Next**.\n* Accept all of the license agreements and finish the installation.\n\n![Install-window](./img/01_install.png)  \n\n\n## Create a public DSA key in Eclipse\n\nFor the authentification with GitHub, it is neccessary to create a secure key which is known by the local Eclipse installation and the GitHub service.  \n\n* In Eclipse, go to **Preferences/General/Network Connections/SSH2**.\n* Select **Key Management**.\n* Click on **Generate DSA Key...**.\n\n![Create a DSA key](./img/02_create_dsa-key.png)\n\n* At the bottom of the window, type in a secret passphrase.\n* Click on **Save Private Key...** and save the file at a well known location.\n\n\n## Register your DSA key with GitHub\n\n* Open your previous generated file with a text editor (e.g., Notepad or SublimeText) and copy the whole text to your clipboard (**CTRL+C/CMD+C**).\n* On the GitHub page go to your **Settings/SSH and GPG keys**.\n* Click on **New SSH key**.\n* Select a title of your choice and paste the previous copied text from your clipboard into the **Key** field (**CTRL+V/CMD+V**).\n* Click on **Add SSH key**.\n\n![Add the DSA key](./img/03_add_ssh-key.png)\n\n\n## Create a new repository on GitHub\n\n* On GitHub click on **New repository** and give the new repository a name.\n* Do ***not*** select the option **Initialize this repository with a README**.\n* Click on **Create repository**.\n\n![Create a new repository on GitHub](./img/04_create_repo.png)\n\n\n## Import the GitHub repository in Eclipse\n\n* In Eclipse, go to **Window/Show View/Other...**.\n* Select **Git/Git Repositories**.\n* A new view should appear.\n* Click on **Clone a Git repository**.\n* Paste your repository URL from GitHub in the URL field (be sure to copy the ssh URL from the repository page on GitHub with something like **git@github.com** at the beginnig).\n\n![Copy the link of the repository](./img/05_copy_repo_link.png)  \n\n* Select `ssh` as **Protocol**.\n* Click **Next** (there is no authentification needed).\n\n![Clone Git repository](./img/06_source_git_repo.png)  \n\n* Click **Next** again.\n* Click **Finish**.\n* When you close the message of the Git repository from GitHub, you should define a repository location (e.g., in your home folder on your system) if Eclipse prompts you to do so.\n* You should now have a Git view of your repositories (probably just one).\n\n![Git repo view](./img/07_git-repo_view.png)\n\n\n## Link Eclipse projects with your repository\n\nYou have to link your Eclipse projects with your GitHub repository to push data to GitHub.   \n\n* Right click on your project **Team/Share Project...**.\n* Select your repository and click **Finish**.\n\n![Configure Git repository](./img/08_share_project.png)\n\n\n## Upload source files to GitHub\n\n* Click on your repository (in the repository-view).\n* Drag all entries from the field **Unstaged Changes(n)** to the field **Staged Changes(m)**.\n* Write a nice **Commit Message** like *This is my first commit*.\n* Click **Commit and Push...**.\n\n![Commit and push...](./img/09_commit_and_push.png)  \n\n* Click **Next**.\n\n![Push branch master 1](./img/10_push_branch_1.png) \n\n* Click **Finish**.\n\n![Push branch master 2](./img/11_push_branch_2.png)  \n\n* Eclipse prompts you with a message that the data is pushed.\n* Click **OK**.\n\n![Push completed](./img/12_push_completed.png)\n\n\n## The end\n\nThe upload of your project to GitHub is finished.\nYou can now open the repository on GitHub and check your source files.\n\n![Your source files on GitHub](./img/13_source_on_github.png)\n\n\n## References\n\n- [Max Rohde - Eclipse and GitHub Tutorial](https://maxrohde.com/2012/05/25/eclipse-and-github-tutorial/)  \n- [Git with Eclipse (EGit) – Tutorial](http://www.vogella.com/articles/EGit/article.html)  \n- [Getting Started with Git, EGit, Eclipse, and GitHub](http://jeromyanglim.blogspot.co.nz/2010/11/getting-started-with-git-egit-eclipse.html)  \n- [git push rejected (on stackoverflow)](http://stackoverflow.com/questions/620253/git-push-rejected)  \n- [A Short Tutorial on Eclipse/EGit/GitHub](http://npascut1.wordpress.com/2011/03/10/eclipseandgit/)  \n- [Using the EGit Eclipse Plugin with GitHub](http://loianegroner.com/2009/11/tutorial-using-the-egit-eclipse-plugin-with-github/)\n\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkratz%2Fhow-to-eclipse-with-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxkratz%2Fhow-to-eclipse-with-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkratz%2Fhow-to-eclipse-with-github/lists"}