git - 可以将 Composer 配置为使用 http 而不是 git clone git@
问题描述
我们正在使用一些带有satis的私有存储库,首先尝试使用 git clone @git 下载代码,两次尝试使用 git clone http://....
有什么方法可以配置作曲家默认与私有存储库 git clone http 一起使用?
谢谢。
奥斯卡
解决方案
您可以尝试进行测试:
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
这将确保使用 git clone 的任何系统(如 Composer)都将使用 HTTPS URL 而不是 SSH URL。
推荐阅读
- javascript - 如何从 web 中的 firebase 实时数据库中获取数据?
- go - 运行 curl 命令时 TCP 服务器返回错误
- c - 带算术运算符的数组?
- javascript - 如何测试默认选择的选项 - KnockoutJS
- java - JUnit 端到端集成测试
- sh - Cloudflare DDNS 使用 API v4 重复 sh 脚本,在单个 sh 脚本中有多个 A 记录,但失败
- gradle - 在 gradle 6.0.1 中找不到参数的方法 compileOnly()
- amazon-web-services - 如何使用 Elastic Beanstalk 和 django-cms 上传图像
- python - cv2.findContours 找不到轮廓
- python-3.x - 当没有其他python进程同时写入sqlite db数据库时,为什么会锁定它?