Use Git to import projects into Git in eclipse-reproduced

Source: Internet
Author: User

"Reproduced in the source Annotated:http://www.zhangxiaofu.cn/java/commonTools/2015/0607/764.html"

First, the original project:

Project name is Testgit

Second, create a new project library on [email protected].

Just fill in the name, and the rest will be filled in according to your needs. Click "Create Project", wait a while to succeed; then copy the address:

In the commit message above, fill in the box with some submission information. Then click on the "Commit and Push" or "commit" button below. After clicking the "Commit" button, the project code is submitted to the local library and the local library is synced to the remote [email protected].

Right-click the project Testgit and select the Push option:

Then the following screen appears:

This interface will automatically paste the git path from the Clipboard if there is a git path in the Clipboard. It is blank, and the path to the new project library created in [email protected] in the second step is copied to the Clipboard. Then paste into the above dialog box in the URI input box, as follows:

The port entry above does not need to be filled in, the default is OK. The following user and password two entries fill in your account password when you log in to [email protected]. Click "Next".

The source ref in the above dialog box selects Master[branch], Destination ref will be automatically filled in based on the result selected by source ref, then click on the "Add Spec" button and the result of the selection operation appears in the list below. Check the force update in the list to override it, such as:

Third, go to eclipse to initialize the local library with the items that need to be imported into [email protected].

Then choose git:

Popup dialog box:

Select the User or create respository in parent folder of project. The following interface is displayed:

Select the items in the list above, then click the Create Repository button below, then click the Finish button. The project name will then appear as follows:

Right-click on the item Testgit:

Click Add to Index, then right-click on the testgit item >>team>>commit Select the Commit option to eject:

Click "Next" or "Finish".

This will synchronize the code to [email protected], to your [email protected] Project interface, also on the four-step description of the interface, refresh can see has been synchronized into, see:

Once the above synchronization is complete, if you commit or update the project Testgit in Eclipse, you will find the eclipse tip:

You need to do the following when the above synchronization is complete:

Right-click on the item Testgit:

Select the Push branch option to eject the following interface:

The above dialog box, Remote name is the default line. URI fill in your [email protected] path (see the second step description).

Port is on the default line, and user and password are the same as described earlier. Click "Next".

No need to modify anything, directly click on "Next", the next pop-up box directly click Finish.

You can then make changes to the project Testgit, update, and so on in eclipse.

"Reproduced in the source annotated: http://www.zhangxiaofu.cn/java/commonTools/2015/0607/764.html"

Use Git to import projects into Git in eclipse-reproduced

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.