Android Deep Explore third chapter

Source: Internet
Author: User

Chapter III Getting started with Git

Open Source: Open source is also known as opensource, its role is to describe the source code can be used by the public software, and the use of the software, modification and distribution is not limited by the license.

Source code: Also known as the source program is not compiled according to a certain programming language specification written text file, is a readable computer language instruction. The main purpose of the source code: to generate the target code and the software description.

Compile and install the source code: General use make ,makeinstall and other commands

The general source code also needs a little system to manage,

First, install Git

Key steps:Ubuntu linux10.10 or newer version: You can use apt-get install git;apt-get install Git-doc git-svn git-email Git-gui gitk command to install Git; Ubuntu 10.04 or lower version : apt-get install git-core;apt-get install git-doc git-svn git-email Git-gui gitk;

RHEL,Fedora,centOS user command installation:yum install Git;yum install Git-doc GIT-SVN git-email Git-gui gitk.

Second, look at the Git Documentation:#man git-checkout to view the Help document; #git helps<sub-command> view in text form ;

#git help git-checkout The document used to view the checkout command.

#git help-w git-checkout view HTML -formatted files.

Third, the source code to submit and obtain the steps:

1. Create the repository git init.

# mkdir-p/demo/helloworld-git// Create an open source project working directory # cd/demo/helloworld-git// Enter working directory

Submit source code, execute 'git init' command

# Ls-al// display . Git directory (hidden directory)

2. Submit the file to the local repository:git commit;

3. Create a branch # git branch

# git Branch New-branch

# git branch-d new-branch

4, switch local branch:git checkout.

5, create an open source project.

6, upload the source code to the remote server, upload the source code to github:git push ;

7, get the source code from the remote server,

8. Download Source code from GitHub :git clone.

Android Deep Explore third chapter

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.