我有这样的东西
"repositories": [
{
"type": "package",
"package": {
"name": "myrepo",
"version": "dev-master",
"source": {
"url": "https://github.com/me/myrepo.git",
"type": "git",
"reference": "master"
}
}
},
但是当 Composer 拉取 repo 时,遥控器 (origin
和composer
).git/config
被设置为git://github.com/me/myrepo.git
.
[remote "origin"]
url = git://github.com/me/myrepo.git
fetch = +refs/heads/*:refs/remotes/origin/*
pushurl = git@github.com: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 中指定了,但为什么不尊重?