Because the project code needs to be uploaded to git, you need to learn how to use git. I initially contacted git and prepared to use this post to record git learning. This post will be updated dynamically as I understand git.
I. Introduction to git 1. Overview: git is a distributed version control system,
2. For more information, see http://baike.baidu.com/subview/1531489/12032478.htm2.git.
Here we will introduce the installation on the Linux platform. I am using Ubuntu Kylin 14.04, just enter the command: sudo apt-Get install git on the terminal, as shown below:
III. Basic use 1. Create a version Library: git init name, create a new git repository named name,
2. Check out the warehouse
(1) clone the local repository: git clone name namenew
(2) clone the repository created on the server: git clone source target directory name
Note that the public key must be added to clone from the repository on the server. The public key generation method is as follows:
Set User Name. Email
Run git config -- global user. Name "User Name"
Enter the command: git config -- global user. Email
Generate public key
Enter the command: Cd ~ /. SSH
Enter the command: SSH-keygen-t rsa-c "mailbox name"
Id_rsa.pub stores the public key and adds the public key to the server to clone it.
At present, I know that git operations are basically the same, and other basic usage will be supplemented later. If something is wrong or bad, I hope you will give me more advice. We hope to get your support.