git,多人共用一台机器,windows上多账户共用
2021-06-20 22:07
标签:publickey gen ado git clone rac sha -o cto src 有用的命令: git,多人共用一台机器,windows上多账户共用 标签:publickey gen ado git clone rac sha -o cto src 原文地址:http://blog.51cto.com/laok8/2341279
but...
运行ssh-sky
若config没有,则手动创建(默认情况的路径C:\Users\Administrator.ssh):
Host icode.baidu.com
User lixianshou
IdentityFile C:\Users\Administrator\.ssh\id_rsa_lixianshou
Host icode.baidu.com
User sungensheng01
IdentityFile C:\Users\Administrator\.ssh\id_rsa
记得文件为 644 (chmod 644 config) 的权限:
接下来执行 git clone 试试了.
ps--过程中碰到了一些错也是上面方式解决的:
lixianshou@icode.****.com: Permission denied (keyboard-interactive,publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
进入到项目里:
git config -e
详细版请参考:https://www.cnblogs.com/popfisher/p/5731232.html
文章标题:git,多人共用一台机器,windows上多账户共用
文章链接:http://soscw.com/index.php/essay/96622.html