Android Deep Explore--hal and Driver Development Chapter Three

Source: Internet
Author: User

Linux is different from Windows and Mac OS X,linux to provide direct source code, open source is also the characteristics of Linux, but because of the Linux kernel version is very much, in order to reduce the size of the hairstyle package, directly provide source code, user installation software, etc. are directly provided source code. But because of the source code, it is necessary to manage the source code, so most people are using the Linux father Liunx written git to manage the source code, and git and other code management software is superior in every aspect, so this book on the introduction of git use

First of all, you need to install git some liunx system is self-contained git, if not, you need to install.

How to view a git document requires the following command:

#man git-checkout \ \ Display Help information, press "Q" to exit

#git help <sub-command> \ \ Specify document usage in text display

#git help git-checkout \ \ Displays assistance information on the terminal

#git help-w git-checkout \ \ HTML Format document

The functionality of Git is particularly complex, how to commit and obtain the source code, mainly by the following command:

GIT init: Creating a Repository

#mkdir –p/demo/helloworld-git

#cd/demo/helloworld-git

#git init \ \ Build and enter directory (/DEMO/HELLOWORLD-GIT)

Git commit: Commit the file to the local repository

#cd/demo/helloworld-git

#echo "HelloWorld" > helloworld.txt \ \ To establish HelloWorld in the HelloWorld directory. TXT file

#git Add Helloworld.txt

#git commit–m ' helloworld-master ' \ \ \ Submit to Repository

#git branch \ \ Create a local branch

#git checkout \ \ Switch Local branch

#git push \ \ Upload source code to GitHub

#git clone \ \ Download source code from GitHub

Android Deep Explore--hal and Driver Development Chapter Three

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.