Project management tool Git

Git installation
Double-click all the way down, modify

the installation path according to personal preference Set Git user name and email:
$ git config --global user.name "test"
$ git config --global user.email [email protected]

Generate SSH password Key process
1. Check if there is already a ssh key: cd ~/.ssh
If there is no key, there will be no such folder, backup and delete if there is
2. Survival key:
$ ssh-keygen -t rsa -C " [email protected]"
press 3 Enters, the password is empty.

Git use
1. Get the source code: $ git clone ssh://[email protected]/test.git
2. Generate a snapshot and store it in the project index: $ git add Add files
3. Project index commit: $git commit
4. Push Local update to remote: $ git push origin master
5. Update remote update to local: $ git pull origin master

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326522186&siteId=291194637