Android Deep Exploration-Volume 1 Chapter III

Source: Internet
Author: User

Getting Started with Git

Linux kernel code and many well-known projects (such as Aniroid eclipes,kde,qt,ruby on rails, etc.) all use Git, written by the father of Linux Linus, for source code control. Linux is designed by a file system expert and a kernel designer's perspective on Git. Its unique design allows git to have exceptional performance and optimized storage capabilities, and Git is superior to other similar source control software in every way.

Install Git

    1. The Ubuntu linux10.10 or newer version of the command is:

#apt-get Install git

#apt-get Install Git-doc git-svn git-email Git-gui gitk

2.ubuntu10.04 or Lower:

#apt-get Install Git-core

#apt-get Install Git-doc git-svn git-email Git-gui gitk

3. RHEL, FEDORA, and CentOS commands are:

#yum Install git

#yum Install Git-doc git-svn git-email Git-gui gitk

View git documentation

Under Linux, you can use the Man command to view the help documentation for the specified command directly. After installing Git-doc, Git's text format and HTML-formatted documents are installed, and all documents exist in the/usr/share/doc/git/git-doc directory. To view a document as text, you can use the following command: # git help <sub-command>

If you want to query the documentation for the Git-checkout command, you can use the following command:

# git Help git-checkout

If you want to see a document in HTML format, you need to use the following command:

# git help-w git-checkout

Submission and acquisition of source code

(1) Create repository: Git IIT

(2) Submit the file to the local repository: git commit

(3) Create a local branch: Git branch

(4) Switch local branch: Git checkout

(5) Create an open source project on GitHub

(6) Upload source code to github:git push

(7) Download source code from github: Git clone

Android Deep Exploration-Volume 1 Chapter III

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.