git clone指定ssh key

默认为:

git clone github.com:wfz-bupt/js.git

修改为:

git clone qq:wfz-bupt/js.git

前提:

在~/.ssh/config文件里,配置了qq所用的key,示例如下:

Host qq

    HostName github.com

    IdentityFile ~/.ssh/id_rsa.qq

    User git 




猜你喜欢

转载自blog.csdn.net/cotexarm7/article/details/80819296