Chapter III Getting started with Git
Open Source: Open source is also known as opensource, its role is to describe the source code can be used by the public software, and the use of the software, modification and distribution is not limited by the license.
Source code: Also known as the source program is not compiled according to a certain programming language specification written text file, is a readable computer language instruction. The main purpose of the source code: to generate the target code and the software description.
Compile and install the source code: General use make ,makeinstall and other commands
The general source code also needs a little system to manage,
First, install Git
Key steps:Ubuntu linux10.10 or newer version: You can use apt-get install git;apt-get install Git-doc git-svn git-email Git-gui gitk command to install Git; Ubuntu 10.04 or lower version : apt-get install git-core;apt-get install git-doc git-svn git-email Git-gui gitk;
RHEL,Fedora,centOS user command installation:yum install Git;yum install Git-doc GIT-SVN git-email Git-gui gitk.
Second, look at the Git Documentation:#man git-checkout to view the Help document; #git helps<sub-command> view in text form ;
#git help git-checkout The document used to view the checkout command.
#git help-w git-checkout view HTML -formatted files.
Third, the source code to submit and obtain the steps:
1. Create the repository git init.
# mkdir-p/demo/helloworld-git// Create an open source project working directory # cd/demo/helloworld-git// Enter working directory
Submit source code, execute 'git init' command
# Ls-al// display . Git directory (hidden directory)
2. Submit the file to the local repository:git commit;
3. Create a branch # git branch
# git Branch New-branch
# git branch-d new-branch
4, switch local branch:git checkout.
5, create an open source project.
6, upload the source code to the remote server, upload the source code to github:git push ;
7, get the source code from the remote server,
8. Download Source code from GitHub :git clone.
Android Deep Explore third chapter