Getting Started with Git
Linux kernel code and many well-known projects (such as Aniroid eclipes,kde,qt,ruby on rails, etc.) all use Git, written by the father of Linux Linus, for source code control. Linux is designed by a file system expert and a kernel designer's perspective on Git. Its unique design allows git to have exceptional performance and optimized storage capabilities, and Git is superior to other similar source control software in every way.
Install Git
- The Ubuntu linux10.10 or newer version of the command is:
#apt-get Install git
#apt-get Install Git-doc git-svn git-email Git-gui gitk
2.ubuntu10.04 or Lower:
#apt-get Install Git-core
#apt-get Install Git-doc git-svn git-email Git-gui gitk
3. RHEL, FEDORA, and CentOS commands are:
#yum Install git
#yum Install Git-doc git-svn git-email Git-gui gitk
View git documentation
Under Linux, you can use the Man command to view the help documentation for the specified command directly. After installing Git-doc, Git's text format and HTML-formatted documents are installed, and all documents exist in the/usr/share/doc/git/git-doc directory. To view a document as text, you can use the following command: # git help <sub-command>
If you want to query the documentation for the Git-checkout command, you can use the following command:
# git Help git-checkout
If you want to see a document in HTML format, you need to use the following command:
# git help-w git-checkout
Submission and acquisition of source code
(1) Create repository: Git IIT
(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 source code to github:git push
(7) Download source code from github: Git clone
Android Deep Exploration-Volume 1 Chapter III