Android Deep Exploration ( volume 1) HAL with the Driver Development Section three Chapters git Getting started with reading notes
This chapter is an overview of Git.
linux is an open-source system. In fact, in linux Many software is related to the underlying program and the kernel driver. , however linux The kernel has a lot of versions, If each version of the software is in the form of an installation package, matching so many versions of the installation package will be very large. So a lot of software is not installed and used in the form of binary installation package. Instead, the source code is downloaded and in each user's own linux The make and make Install command. and linus as linux git The performance and storage capabilities are the best of its kind, so many users use it as a source code management tool.
To install Git , you need to use the following code:
Apt-get Install git
Apt-get Install Git-doc git-svn git-email GIT-GITK
Looking at a Git document requires the following code:
Mans Git-checkout
The following steps are required for extracting and retrieving source code:
1. Create repository git init
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 the source code to GitHub : git push
7. Download source code git clone from GitHub
From the study in this chapter, I know that the source code embodies the original idea of the author, it is the key to learning Linux . So learning about git can quickly help me learn Linux.
Android Deep Explore (Vol. 1) HAL and Driver Development Chapter III git use getting started reading notes