Use of Eclipse-git

Source: Internet
Author: User
Tags email account

A simple configuration, fill in our User name and mailbox

"Preferences" Team "git>configuration

Click Add Entry to enter the value of key and value in the popup box.
Key, name fill in: User.name,value is your name.
E-mail: User.email value: Your email account. When you submit your code, it automatically extracts the information and sends it to the GIT remote repository along with the code.

2. (1) Submit the project to the remote Git repository for the first time. (I use Githob as an example, githob more useful, we can put their own projects are transmitted up, both anytime and anywhere to the code clone down development, can also be used as a network disk)

To Githob, register an account, log in

Click New Repository, enter the project name as required, Project introduction, choose Public,private, to charge. Click Create, it's all right. Name, don't use Chinese oh. Get shown, click HTTP, copy HTTPS, for a moment, submit the project with

(2) Create a project and a local git repository

Open Eclipse, create a project, and then

Sequence: File > Team > Share Project Select Git>next

If you use it for the first time, you'll need to create a local repository first, which is uploaded to the local repository before it can be uploaded to the remote repository. So click Create here.

Tick, click on the items listed below, then click Create Respository below, finally, finish, on
Created a local warehouse

When you're done, you'll see that our project becomes this way, with one more question mark on each.

In the Android project, we do version management, but do not use the Management bin this folder, we have to ignore this folder, the way to ignore the following:

Select the file or folder, right-click, and select Ignore in team.

After doing this, we have one more file in the code for our local warehouse project (. Gitignore)

Files that do not require version management are documented here:

Once this is done, we can submit the code to the local repository:

Use of Eclipse-git

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.