- Enter Https://gitee.com/profile to view your account number and email address, put it down in Notepad and use it below.
- Open git input command git config–global user.name "yourname" carriage return
git config–global user.email "[Email protected]" Enter
$ ssh-keygen-t rsa-c "[Email protected]" (please fill in the email address you set) enter
Then appears:
Generating public/private RSA key pair.
Enter file in which to save the key (/USERS/YOUR_USER_DIRECTORY/.SSH/ID_RSA):
Ignore these please continue to press ENTER directly
- Until it appears
The key ' s Randomart image is:
+-[rsa 2048]--+
| ==++. . |
| . ++.O. .|
| .. O++oo |
+--[sha256]-–+
Such a
- After opening the prompt in the directory under Notepad open id_rsa.pub, copy the contents.
- Go to your account Https://gitee.com/profile/sshkeys click SSH Public key
- Copy the content pasted into the key, title can not write, pro-test.
Verify: $ ssh-t [email protected] carriage return test
Note: When the key is generated, enter passphrase (empty for no passphrase), this step directly entered enter do not enter the password
Git linux git push to code cloud