maxkratz / How-to-Eclipse-with-Github

A tutorial on how to use Eclipse with Github.
GNU General Public License v3.0
17 stars 10 forks source link
eclipse git github tutorial

How to use Eclipse with GitHub

This is a tutorial on how to use Eclipse with GitHub.

[!NOTE]
I've created this repository/tutorial a few years ago. Although it shows a valid way to use Eclipse with GitHub, I would always prefer an external Git client (e.g., GitKraken) these days.

Requirements

The latest version of Eclipse can be downloaded from here and of course a GitHub account is needed.

First Step: Install EGit in Eclipse

For uploading code from Eclipse, the egit-plugin is needed.

Install-window

Create a public DSA key in Eclipse

For the authentification with GitHub, it is neccessary to create a secure key which is known by the local Eclipse installation and the GitHub service.

Create a DSA key

Register your DSA key with GitHub

Add the DSA key

Create a new repository on GitHub

Create a new repository on GitHub

Import the GitHub repository in Eclipse

Copy the link of the repository

Clone Git repository

Git repo view

Link Eclipse projects with your repository

You have to link your Eclipse projects with your GitHub repository to push data to GitHub.

Configure Git repository

Upload source files to GitHub

Commit and push...

Push branch master 1

Push branch master 2

Push completed

The end

The upload of your project to GitHub is finished. You can now open the repository on GitHub and check your source files.

Your source files on GitHub

References

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for more details.