1
在我的Windows 7,我已经创建了居住在的.ssh文件夹中的配置文件: -如何在Windows上设置git ssh的多重身份?
Host office
Hostname [email protected]
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Host home
Hostname [email protected]:8888
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_home
,但是,我仍然无法克隆回购。
- 想知道如何设置Windows 7上的多个主机?
- 什么应该是配置文件的扩展?
嗨谢谢..still同样的问题。问题:克隆时是否需要对repo地址进行更改? – user1327064 2014-09-12 15:14:30
你把它克隆为git @ office:path/to/repo或者git @ home:path/to/repo – dseminara 2014-09-12 15:22:57