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