Build your own repository with Git

1. We set this up if you already have Git installed

2. Run git config –global user.name “x x x” to set the username

3. Run git config –global user.email “[email protected]” to set the email address

4. Use ssh-keygen -t rsa-c “[email protected]” to log in to gitee.com, and press Enter three times

5. Run cat ~/.ssh/id_rsa.pub to view keys

6. Log in to gitee.com, go to the Settings of the personal center, set the SSH public key, and copy the key viewed in Step 5 to it.

7. Return to git.bash, type SSH -t [email protected], and type yes so that we can upload to the repository without verification