【发布时间】:2020-10-30 06:56:21
【问题描述】:
当我执行 make init-dev 时,我在 git clone ssh 中遇到问题
if [ ! -d "goodcommerce-hydra" ] ; then git clone "git@gitlab.com:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"; cd goodcommerce-hydra && git checkout "master"; fi
Cloning into 'goodcommerce-hydra'...
ssh: Could not resolve hostname gitlab.com;c: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
但是当我执行时
git clone "git@gitlab.com:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"
效果很好。
也许是 de ;c in ssh: 无法解析主机名 gitlab.com;c: ?
我使用的是 WINDOWS 10 专业版
【问题讨论】:
标签: git gitlab repository ssh-keys