D:1.0.4> git clone ssh://git@gitlab.beijing.com:9000/hangzhou/global/foreign-py.git
报以下错误
Cloning into 'foreign-checkuser-py'...
git@gitlab.xiaoxiangyoupin.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
输入自己的电子邮箱并回车命令
D:>ssh-keygen -t rsa -C "gggg2009@163.com"
出现此图说明秘钥配置成功
在C盘查找id_rsa.pub 并复制,添加SSH 密钥
clone成功
D:>git clone ssh://git@gitlab.ggggg.com:9000/hangzhou/global/foreign-py.git
Cloning into 'foreign-checkuser-py'...
remote: Enumerating objects: 235, done.
remote: Counting objects: 100% (235/235), done.
remote: Compressing objects: 100% (144/144), done.
Receiving objects: 98% (2859/2917), 1.24 MiB | 2.41 MiB/s
Receiving objects: 100% (2917/2917), 1.44 MiB | 2.52 MiB/s, done.
Resolving deltas: 100% (2065/2065), done.