Integrate Git / GitHub with Eclipse IDE for Selenium Java Project

Integrate Git GitHub with Eclipse IDE – Git is a revision control system, a tool to manage versions of edits you made to files in a git repository.  In order to checkin & checkout the code from eclipse IDE, the very first thing we need to do is, install Git plugin in to Eclipse IDE.

Below are the steps to guide about installation of Git plugin in eclipse IDE.

Go to Help –> Install New Software

enter image description here

Use URL = http://download.eclipse.org/egit/updates

enter image description here

Click on OK & Select the just now added URL.

Avilable softwares for GIT installation

Select and Click on Next. Follow the next process and complete the installation.

 

Now, Once installation is completed,  you want to add the Git Repositories view:

enter image description here

enter image description here

enter image description here

Create a new Git Repository. I have already created a repository called Java. I will refer to that repo for the rest of the explanation.

enter image description here

After you create your repository, it should show up in the Git Repositories view. Now to add your project to the repository, right click on your project and select Team->Share Project.

Select the repository you just created. You can also use CTRL+ to select multiple projects and place them in one repository.

Now go back to your Git Repositories view. Go to Remotes . Right click and select Create Remote.

enter image description here

Select Change... and enter the SSH link for your Repository on GitHub. For connection, select SSH. Then press Finish. enter image description here For Rev-mapping, select Advanced.... For Source Ref select refs/heads/master. And then press Add Spec, then select Save specifications in 'origin' configuration. Then press finish.
That's pretty much it. You can commit changes by right clicking your project - >
Team->Commit…`

enter image description here

Push new commits to GitHub:

enter image description here

Hope this helps !!!