微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git 多人协作 一台机器配置多个项目

                                            <table class="text"&gt;<tbody><tr class="li1"&gt;

<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 passphrase (empty for no passphrase): Enter same passphrase 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:z7JCMVLQNgDWQddmols8JY414jC9Hj2cn4Pp6bro2+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文件下,建立config文件,并且添加内容: #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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐