git - 如何解决致命问题:无法从 GIT 中的远程存储库中读取?
问题描述
当我执行 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: Could not resolve hostname gitlab.com;c:?
我正在使用 WINDOWS 10 专业版
解决方案
我觉得 ”;” 这里错了
应该这样做;虽然“git check”似乎不是一个正确的命令。
if [ ! -d "goodcommerce-hydra"" ]; then
git clone "git@gitlab.com:/goodcommerce/goodcommerce-hydra.git" "goodcommerce-hydra"" && cd goodcommerce-hydra && git check
fi
推荐阅读
- java - 当我在共享登录节点中启动 spark-shell 时,JVM GC 出了什么问题?
- excel - 将工作表导出为 csv
- python - Postgresql sqlalchemy 默认时间 now() 一遍又一遍地给出相同的时间
- javascript - Jade 中的连接变量
- python - 每种数据拆分类型的形状气泡图
- c++ - C++ 如果一个函数调用另一个接受参数并打印结果的函数。为什么不打印?
- vue.js - 当有人切换视图时,有没有办法在 fullcalendar vue 组件中得到通知?
- java - 在java中设置状态
- javascript - 仅在使用 jQuery 的循环内选中特定复选框
- python - 通过 kv 文件启用/禁用按钮 onclick