How easy it is to use git, without a command line, to submit code so easily.

Source: Internet
Author: User
Tags how to use git

The following are purely personal points of view, please lightly spray:
Objective:

In the development of Android, the first thing to use is the version control tools, many people cooperate with the development. (If you are developing independently, please ignore this article). If you use Git, you can submit your code anytime, anywhere, and it's cool. But if you're using the command line to submit your code, it's really painful. This article teaches you how to use git for quick and easy version control. Nonsense not much to say, directly on the steps.

Step 1: Install git

First install the Msysgit

Msysgit 64/32-bit: http://download.csdn.net/download/laochangzhi/9522638

Download and Unzip



Click Install

Fool-type installation, always click on Next, no longer stickers, final finish, installation completed.

At this point you go back to the desktop, click the right mouse button, surprise found more than two


Next we install Tortoisegit, which is what we often call the little turtle.

Tortoisegit 64-bit address: Http://rj.baidu.com/soft/detail/37635.html?ald


The same is also a fool-like installation, Next-next-next-install-finish.

This time back to the desktop, click the right mouse button, surprised to find out more than three items

Now that Git is installed

Step 2:git Desktop Tool installation

GitHub Desktop is github out of the desktops of management tools, the official website can be downloaded, belongs to the online installation, the domestic words installed up and hehe. But we have offline package AH ();

Offline Package: http://download.csdn.net/download/lyg468088/8723039

Open github.application after decompression, provided that the temp file in the C:\Windows directory can be read and writable



Click Install

After the installation is successful, the following screen automatically pops up, login to your GitHub account and password

Don't want to log in, you can skip if you don't want to use GitHub's warehouse.

Step 3: Connect your remote code repository to GitHub desktop. GitHub warehouse Good, but a little private library charges, and all English, English is not good, really a little confused. Free Private Warehouse has many, like CSDN code, open source China's code cloud and so on, are good, free and useful, the most important is Chinese!

1, create a remote repository, code, code cloud and so on, here no longer explain

2. New folder, clone remote Project

Click Git Clone to enter your code or code cloud warehouse address


This is the time to verify your code or code cloud account and password

When the input is correct, the remote project is clone to local.

3. Establish a connection to GitHub desktop

Open GitHub Desktop

Click Add to add the local address of the clone just now


Click Add Repository. At this point, your remote repository is already connected to GitHub desktop, and after the local project has been modified, only the GitHub desktop sync can be used to submit it.

Step 4: Implement the Commit code

After the local code has been modified, open GitHub Desktop and it will show you where you modified it.


Click on the commit to master and then click on the upper right corner of Sync, will appear to verify your code or code cloud remote warehouse account and password. Fill in correctly.

For example, the history record will be more than one record after the successful submission.

Congratulations, you've succeeded. Submitting the code later requires sync, isn't it simple.


How easy it is to use git, without a command line, to submit code so easily.

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.