Android Developer's Git&github (one)

Source: Internet
Author: User

To install Git:

Linux (in Ubuntu, for example):

sudo apt-get install Git-core

Windows:

Visit URL http://msysgit.github.io/Download the installation package

After the download is complete, double-click the installation package to install it, then click Next to complete the installation

Create a code Warehouse

First configure the identity

git config--global user.name "Zhangbz"

git config--global user.email "[Email protected]"

Then create the Code warehouse

Enter the project directory below, enter the following command to complete the creation

Git init

After a common completion, a hidden. Git folder is generated at the root of the project, which is used to record all of the local git operations and can be viewed via the Ls-al command

If you want to delete the local repository, you just need to delete the folder.

Submit Local Code

git add androidmanifest.xml add a single file

Git add src adds an entire directory

git Add. Add all Files

Git commit-m "first commit." Note: It is important to use the-m parameter to add the submitted descriptive information, and the submission without the description information is considered illegal.

Android Developer's Git&github (one)

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.