logo

Programming: Creating and Uploading Java Projects to GitHub via Eclipse

   

Added on  2023-06-05

6 Pages838 Words246 Views
Running head: PROGRAMMING
Programming
Name of the Student:
Name of the University:
Author note:
Programming: Creating and Uploading Java Projects to GitHub via Eclipse_1
1
PROGRAMMING
Part D
In order to create a project in eclipse using the Java language and then upload them in
the respective git repository, there are several procedures available. Some might find it
comfortable to create the project in the default eclipse-workspace and then push the project
into the local repository using the Git bash from the project location. However, Eclipse has an
added plugin for this purpose that goes by the name EGit. The following steps have been
followed to commit regular project changes into the GitHub account via Eclipse:
Step 1. Open Eclipse.
Step 2. Create a new project and write the initial phase of the program.
Step 3. Help > Install New Software > Add URL https://www.eclipse.org/egit/ and
install all necessary packages.
Step 4. Right click on project folder from Eclipse’s project explorer.
Step 5. Click on Team from the menu and then Share Project.
Step 6. Open GitHub web account and create new Repository ‘PartD’.
Step 7. Configure the local repository path.
Step 8. Once the local repository is set up, right click on the project again and select
commit.
Step 9. Drag all the necessary files into the staging area, add a comment and Commit
and Push changes after inserting the repository URL from the respective GitHub
account.
Step 10. Enter and save account details and Push the updates every time it is required.
Step 11. Open the local repository and run the ‘git log’command to view the hanges in
Bash.
Programming: Creating and Uploading Java Projects to GitHub via Eclipse_2
2
PROGRAMMING
Fig 1. The four commit changes are listed alongside updated comments.
GitHub repository Link: https://github.com/islambeth/PartD
Fig 2. The GitHub history of the PartD repository
Programming: Creating and Uploading Java Projects to GitHub via Eclipse_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Using GitHub for Version Control: A Beginner's Guide
|7
|680
|416