Eclipse is an integrated development environment (IDE) used in computer programming. It contains a base workspace and an extensible plug-in system for customizing the environment. Eclipse is written mostly in Java and its primary use is for developing Java applications, but it may also be used to develop applications in other programming languages via plug-ins. Git is an open-source version control system. It means that whenever a developer develops some project (like an app or website) or something, he/she constantly updates it catering to the demands of users, technology, and whatsoever it maybe, Git is a version control system that lets you manage and keep track of your source code history. Find the appropriate web project according to your requirement in GitHub. In this blog, we will see how to push an existing project to GitHub using Eclipse IDE. Steps to Export project to GitHub Step 1: Create Maven project in Eclipse Open Eclipse IDE and right-click on the project you want to push and go to Team->share project.
Step 2: It will add the project to the given repository as shown below: After configure your repository click on finish button.
Step 3: Again right-click on the project and go to Team->commit.
Step 4: Drag and Drop the files you want to commit from Unchanged Changes to Staged Changes.
Step 5: Write the commit message in “Commit Message” and click “Commit and Push“.
commit window will open here you need move files from Unstaged changes to Staged Changes and add commit message after that in Author and Committer textboxes give your creditials and click on commit.
Step 6: Fill in your UserID and password of GitHub and click “Log in“. Here give your github username and in the section password give your GitHub personal access key next click on login Step 7: Push to the new-branch of GitHub Repository and click “Push“.
The new branch is created on GitHub and is required to be merged by creating a pull request.
This blog will help you to push your project to GitHub repository.