繁体   English   中英

如何解决致命问题:无法从 GIT 中的远程存储库读取?

[英]How to solve fatal: Could not read from remote repository in GIT?

当我执行 make init-dev 时,我在 git 克隆 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"

它运作良好。

maybe is de ;c in ssh: Could not resolve hostname gitlab.com;c: ?

我正在使用 WINDOWS 10 pro

我觉得 ”;” 这里错了

应该这样做; 虽然“git check”似乎不是一个正确的命令。

if [ ! -d "goodcommerce-hydra"" ]; then 
git clone "git@gitlab.com:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"" && cd goodcommerce-hydra && git check 
fi

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM