我有这样的东西
"repositories": [
{
"type": "package",
"package": {
"name": "myrepo",
"version": "dev-master",
"source": {
"url": "https://github.com/me/myrepo.git",
"type": "git",
"reference": "master"
}
}
},
但是当 Composer 拉取存储库时,遥控器 (origin
and composer
) in .git/config
设置为git://github.com/me/myrepo.git
.
[remote "origin"]
url = git://github.com/me/myrepo.git
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = [email protected]:me/myrepo.git
[branch "master"]
remote = composer
merge = refs/heads/master
[remote "composer"]
url = git://github.com/me/myrepo.git
fetch = +refs/heads/*:refs/remotes/composer/*
我无法推送它,因为 Github 不支持git://
。我必须手动将其更改为https://
然后推。我指定https://
在 URL 中,但为什么不尊重这一点?
您可以使用以下命令更改 github 使用的协议:
composer config --global github-protocols https
然后重新安装供应商应该可以满足您的要求。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)