To install Git:
Linux (in Ubuntu, for example):
sudo apt-get install Git-core
Windows:
Visit URL http://msysgit.github.io/Download the installation package
After the download is complete, double-click the installation package to install it, then click Next to complete the installation
Create a code Warehouse
First configure the identity
git config--global user.name "Zhangbz"
git config--global user.email "[Email protected]"
Then create the Code warehouse
Enter the project directory below, enter the following command to complete the creation
Git init
After a common completion, a hidden. Git folder is generated at the root of the project, which is used to record all of the local git operations and can be viewed via the Ls-al command
If you want to delete the local repository, you just need to delete the folder.
Submit Local Code
git add androidmanifest.xml add a single file
Git add src adds an entire directory
git Add. Add all Files
Git commit-m "first commit." Note: It is important to use the-m parameter to add the submitted descriptive information, and the submission without the description information is considered illegal.
Android Developer's Git&github (one)