Instructions for use in Eclipse Git

 

This article aims to introduce the use Git in Eclipse, including the use of Git upload new items to the remote repository , pull the new project from a remote repository , commit changes and get updates .

First, the use Git remote repository to upload new projects

Before using Git remote repository to upload a new project, the first thing to do is: (1) create a remote repository, (2) create a new project (in this case using a Maven project).

(1) create a remote repository

In this paper, a GitHub code hosting platform, first log on GitHub: https://github.com  , and then create a new Repository. Procedure as follows:

Step 1: Create a new warehouse.

Step Two: Fill in the necessary information warehouse.

Step 3: Create complete.

 

(2) Create a new project

Create a paper project using the Eclipse Maven plugin created. Procedure as follows:

 Step 1: Create Maven project

Step Two: Fill in project-related information

The third step: the project is created. Added App.java, .gitkeep file in the project

 

 At this point, create a remote warehouse and new projects have been completed. Next, the new project will do is uploaded to a remote repository, the specific operation as follows:

The first step: Right-click the project, select [Team] -> [Share Project ...], choose Git, then Next

Step Two: Configure Git repository, in the order shown in FIG., And finally clicks] [Finish

 

 

 

The third step: to create a local warehouse OK, this time the project as shown below:

Step 4: Submit the project to a local warehouse

Step five: uploaded to a remote repository

Right-click the project, select [Team] -> [Remote] -> [Push]

 

 Step Six: OK! View GitHub

 

Guess you like

Origin www.cnblogs.com/hrvyzou/p/11058059.html