<table class="text"><tbody><tr class="li1">
<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
rating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): /c/Users/Administrator/.ssh/id_rsa_fptcom
Enter pa
ssphrase (empty for no pa
ssphrase):
Enter same pa
ssphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa_fptcom.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa_fptcom.pub.
The key fingerprint is:
SHA256:z7JCMVLQNgDWQddmols8JY414jC9Hj2cn4Pp6
bro2+E github-fptcom
The key's randomart image is:
+---[RSA 2048]----+
| o===.. |
| .o +.X = |
| + & X |
| B % |
| . = OS. |
| o + +o |
| o....o |
| . o+. o |
| .*=E.. |
+----[SHA256]-----+
在.ssh
文件下,建立con
fig文件,并且
添加内容:
#Default GitHub
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
Host github-fptcom
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_fptcom
已clone好的
文件地方输入下面指令改变github本地的前缀
$ git remote set-url origin github-fptcom:xxxxxxxx/BestoneGitHub.git