Git installation: Git is the first thing to install before you use Git. Many Linux systems have been brought with git. If your reader's Linux does not have Git installed, you can use the following method to install the latest version of Git.
Ubuntu Linux 10.10 or later, you can use the following command to install Git.
#apt-get Install git
#apt-get Install Git-doc git-svn git-email Git-gui gitk
Ubuntu Linux 10.04 or lower version.
You need to use the following command to download git for version control.
#apt-get Install Git-core
#apt-get Install Git-doc git-svn git-email Git-gui gitk
RHEL, fedora, and cent OS.
If your readers use Rhel, fedora, and CentOS, you can install git using the following command.
#yum Install git
#yum Install Git-doc git-svn git-email Git-gui gitk
Ways to view git documents: Under Linux, you can use the Man command to view the help documentation for the specified command. To query the Help documentation for the Git-checkout command, you can use the following command.
#man Git-checkout
Execute the above command line, will display the Help information on the Linux terminal, press "Q" key to exit the help.
After installing Git-doc, Git's text format and HTML-formatted documents are installed, and all documents exist in the/usr/share/doc/git-doc directory. You can use the following command to view the specified document as text.
#git Help <sub–command>
To query the documentation for the Git-checkout command, use the following command.
#git Help Git-checkout
After executing the above command, the Help information is displayed on the Linux terminal. If you want to see a document in HTML format, you need to use the following command.
#git help–w Git-checkout
Executing the above command line will display the help information for the Git-checkout command in the browser.
Source code submission and acquisition steps: (1) Create repository: Git init, (2) Commit files to local repository: Git Commit, (3) Create local branch: Git branch; (4) Switch local branch: Git checkout ; (5) Create open source project on GitHub, (6) Upload source code to github:git push, (7) Download source code from github: Git clone.
Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter III reading experience