Use Git in Eclipse

Source: Internet
Author: User
Tags how to use git git commands

Use Git in Eclipse

Git has been around for a long time (but I have been ignorant and have forgotten the commands). I have been writing a blog for some time, but I never thought these two things would be linked together. I used to make a Demo before writing a blog, clarify all the problems, and then start writing. before writing a blog, I uploaded the code to the Baidu cloud disk for download, later, I saw many people who liked to bring their projects to GitHub. I felt pretty good, so I was eager to try it. I tried it today and it felt pretty good. Write it down and share it with you.

First install the EGit plug-in Eclipse, such:

1.

2. Click Add.

3.

4.

5.

Installing plug-ins for Eclipse is rarely blocked. The installation process is not long. Please wait.

After the installation is successful, we can use it.

I. upload code to the local repository

Create an Android project, right-click it, and select Share project from Team

If you use it for the first time, you need to create a local warehouse first, and upload things to the local warehouse before uploading them to the remote warehouse. So Click Create here.

After that, we can see that our project has become like this, and each of the above has a question mark.

In the android project, we manage versions but do not use the bin folder. We need to ignore this folder as follows:

Right-click the file or folder and select Ignore from Team.

After this is done, a file is added to the Code of our local repository project,

Files that do not require version management are recorded here:

After that, we can submit the code to the local repository:


.

Ii. upload code to a remote Repository

1. Create a repository:
After logging on to GitHub:

Then:

Enter the repository name and click Create.

After creation, we can upload the file:

Then, it is like this:

In this way, you can upload the code.

There are many steps, and the process is actually very simple. I have some articles about how to use Git commands. If you are interested, read them.

GitHub Tutorials:

GitHub tutorials

Git tag management details

Git branch management

Git remote repository details

Git local Repository (Repository) Details

Git server setup and Client installation

Git Overview

Share practical GitHub tutorials

How to Build and use Git servers in Ubuntu

Git details: click here
Git: click here

This article permanently updates the link address:

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.