0% found this document useful (0 votes)
128 views9 pages

Instructions1 - Uploading New Java Project From Eclipse IDE Onto Github Website

The document provides instructions for uploading a new Eclipse Java project to GitHub. It involves setting up the GitHub repository, configuring Git in Eclipse, committing and pushing changes from Eclipse to GitHub. Key steps include installing the EGit plugin in Eclipse, configuring user details, sharing the project with Git and committing initial changes, creating a GitHub repository, and pushing the local repository to GitHub. Changes are then visible on the GitHub website.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views9 pages

Instructions1 - Uploading New Java Project From Eclipse IDE Onto Github Website

The document provides instructions for uploading a new Eclipse Java project to GitHub. It involves setting up the GitHub repository, configuring Git in Eclipse, committing and pushing changes from Eclipse to GitHub. Key steps include installing the EGit plugin in Eclipse, configuring user details, sharing the project with Git and committing initial changes, creating a GitHub repository, and pushing the local repository to GitHub. Changes are then visible on the GitHub website.

Uploaded by

Pratiksh Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Instructions1_Uploading new eclipse java project from Eclipse IDE onto Github Website

Locate the Windows Home button > Type Control panel in the search bar> Type System > Click
“edit your systems environment variables” > Click “Environment variables” > Click New > Enter
info for variable name field “HOME” > Enter info for variable value field “%USERPROFILE%” >
Click Ok > Click Ok

Start Eclipse

Inside of Eclipse > Click Help > Click Install New Software > Enter info in the WorkWith field
“Egit” > Click Select all > Click Next > Click Next > Click accept agreement >Click finish >Click
Restart Now > Click Launch

Click Window > Click Preferences > Under Team click Git > Under Git click Configuration > Click
add entry > enter info in fields (Key = user.name; value = prat) > ok > Apply > Click add entry >
enter info in fields (Key = user.email; value = [email protected]) > Click ok > Click
Apply & close

Right click on the project folder “Driver[myLocalRepository]” > Click team > Click Share Project >
Click Create > Update the Repository directory field from
“C:\Users\prati\git\myLocalRepository” to “C:\Users\prati\git\myLocalRepository\.git” >
Update Working directory field “C:\Users\prati\git\myLocalRepository “ > Click Finish
Click Window > Click show view > Click other > Under Git; click Git Repositories, Git staging >
Under Team; click history > Click ok

Right click on the project folder “Driver[myLocalRepository]” > Click Team > Click Commit >
Enter info in the Commit message field “1st check-in of the project” > Click the + icon in the
unstaged changes to transfer the files over to the staged changes > Click commit
Open an internet browser > go to github.com > create a git hub account > sign into the git hub
account > on the upper right-hand corner of the screen locate the + icon > click the down point
triangle next to it > click New Repository > Enter info the Repository name field
“MyFirstRepository “> Click create repository > Click Clone or download > Click clone with SSH >
Copy the SSH key “[email protected]:prat1991/MyFirstRepository.git”

Right click on the project folder “Driver[myLocalRepository]”” > Click Team > Click Remote >
Click Push > Click Custom URL > paste the git hub link into the URL field " > paste the info into
URL field “https://github.com/prat1991/MyFirstRepository.git” > Host field is automatically
populated as “github.com” > Repository path field is automatically populated as
“/prat1991/MyFirstRepository.git” > Click “ssh” for Protocol field > username field is
automatically populated as “git” > Click the checkbox for Store in Secure Store so it auto fills
the login info for future commits > Click Next > Select Source ref field as “master[branch]” >
Select destination field as “master[branch]” > Click Add Spec > Click Next > Click Finish
Click Git Repositories > Click myLocalRepository > Click Remotees > Right Click the red arrow >
Click Configure push > click Advanced > click checkbox for Force Update > Click checkbox for
Save specifications in origin configuration > Click Finish > Click Save
Click Git Repositories > Click myLocalRepository > Click Remotees > Right Click the red arrow >
Note that the pop-up window says that the local repository was successfully pushed onto the
remote repository
To visually verify that Rev 1 of the source code was pushed onto Git hub > Open an internet
browser > go to github.com > sign into the git hub account > Under “Your repositories” tab
select your “MyFirst Repository” > Click Driver > Click src > Click Driver.java > View Source code

Source Code Rev 1 in on Github Website 😊


Update the source code in the Eclipse IDE > Click Play Button > Watch the Console window output

From Rev1 of Driver.java To Rev2 of Driver.java

Source Code Rev 2


Source Code Rev 1
Click Git Repositories > Right Click myLocalRepository > Click Commit > Click the + sign on the
Unstaged Changes field to move Driver.java to the Stages Changes field > Click on Commit
Changes field and enter “Updated source code to add Writing line 2” > Click Commit and Push >
Note that the pop up window says that the local repository was successfully pushed onto the
remote repository
To visually verify that Rev2 of the sourcecode was pushed onto Git hub > Open an internet
browser > go to github.com > sign into the git hub account > Under “Your repositories” tab
select your “MyFirst Repository” > Click Driver > Click src > Click Driver.java > View Source code

Source Code Rev 2 in on Github Website 😊

You might also like