A preliminary interview with Git. Using Git in eclipse

Source: Internet
Author: User
Tags using git version control system

CVS > SVN > GIT version Control History

GIT: A free, open source distributed version control system .

 

A. Create a git repository

1 . First register your account on the https://github.com platform

2 . Create a project; After successful landing, there is a "+" symbol next to the user name, click to create a new project;

      

Enter the project name, here I enter the demo; optional input item description;

the project we have chosen here is public. There is a charge to select Private .

then create the project.

 

3. Project homepage

After you create the project, it appears.

Copy HTTPS links. Subsequent projects will be used, where the link is equivalent to the path of the project submitted in SVN.

 

 

two. using git in eclipse

My version of Eclipse :eclipse-jee-kepler-sr2-win32-x86_64

This version comes with a git plugin. Just use it to get it right .

 

1. Configuration git

>preferences >team>git>configuration

Click ADD Entry , create a portal.

Key the input specifications are: User.Name ( XX. YY ) value is your name.

user.email e-mail address.

 

This information is extracted when the project is submitted. Sent to the git repository.

 

Ok . Here git is configured to complete, is not very convenient ... Whether you believe it or not, I believe it anyway.

 

2. Submit Project to git Warehouse

1. first create a project, not much to say, project name demo.

 

2. Submit the project

Project > Right-click >team>share Project

has selected Share Project after; Select git

Click Next

here is the creation git warehouses.

Use or crate ... Tick the front check box. Then select the item. Click the Create Repository button, as

Click Finish complete; The project will become the following;

 

Select Item > Right-click >team>commit;

to add a description, tick the file you want to submit.

Commit and push button: Submit to the local warehouse and submit to git remote Warehouse;

Commit Button : Submitted to the local repository and not committed to the git remote repository;

 

we choose Commit button to submit to the local repository;

 

then put the project Push to the git Warehouse;

Project > Right-click >team>remote>push

appears after clicking

input just before GitHub Create git the address of the warehouse. Then enter your username and password,next

Souce ref Select Master ; Click on the right Add Spec

then Finish completed. The project has been submitted to the git repository. Open the GitHub website to view the project.

here, our project is submitted to git the warehouse.

 

three. checking out projects from eclipse

1. open git view in Eclipse

                 

 

Click the icon in the

 

Enter the address. User name, password

then Next .

Select the location where the project is stored. Then finish.

finally import the project;

This ends. You can Check out the project from the remote Git repository and develop it in eclipse.

A preliminary interview with Git. Using Git in eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.