This chapter is about Getting startedwith git , a source code control written by the father of Linux. And is used by many famous projects. Its unique design gives Git Exceptional performance, the most optimized storage capability, and superior to other source code management software. Therefore, the study of this part is very important for the whole learning process.
First we need to install git, general computer Linux system with git, if not, you can complete the download by means of the book. Once the download is complete, you can view the Git document directly using the man command .
Git is very complex, we need to complete the functions are: Create a repository, submit source code, create a branch, to the remote server to submit source code, from the remote server to obtain source code and so on. The lesson of this chapter is to learn how to use Git to get the source code from a source-code hosting server.
1 Creating a version library
The Git repository differs from other source control repositories in that it is a local repository and a remote repository, and is the owner of the local repository.
2 submitting a file to the local repository
3 Creating a local branch:git branch
4 Switch Local branch:git checkout
5 creating an open source project on GitHub
6 uploading source code to GitHub
7 Download source code from GitHub :Git Clone
While GIt is not the technology to learn about Android porting and Linux Kernels, it is essential to drive development, but to delve deeper into the underlying technology, is also an essential technology. git 's near-perfect concept and high performance are well-loved by technicians, and more and more open source projects are migrating to Git , and these open source projects are undoubtedly huge treasures.
My Blog Park address
http://www.cnblogs.com/liang0202/
Android Deep Explore Chapter III