Instructions1 - Uploading New Java Project From Eclipse IDE Onto Github Website
Instructions1 - Uploading New 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