Git
发布时间:2022-05-05 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了git 多人协作 一台机器配置多个项目,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<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 passphrase (empty for no passphras
E):
Enter same passphrase again:
Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa_fptco
m.
Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa_fptco
m.pub.
The key fingerprint is:
SHA256:z7JCMVLQNgDWQddmols8JY414jC9Hj2cn4P
P6brO2+E github-fptcom
The key's randomart image is:
+---[RSA 2048]----+
| o===.. |
|
.o +.X = |
| + & X |
| B % |
| . = O
s. |
| o + +o |
| o...
.o |
| . o+. o |
| .*=E.. |
+----[SHA25
6]-----+
在.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
大佬总结
以上是大佬教程为你收集整理的git 多人协作 一台机器配置多个项目全部内容,希望文章能够帮你解决git 多人协作 一台机器配置多个项目所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。