我有私人回购存储和ssh密钥访问。我在.ssh/config file
上配置了主机名,端口,ssh文件(_rsa)。稍后我在终端上执行git clone ssh://[email protected]
命令。有用。当我在终端执行composer update vendor/repo:dev-master
命令,此命令失败,并给出以下错误:作曲家git克隆 - 镜像失败
Repository not found
The requested repository does not exist, or you do not have permission to access it.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我在composer.json更改URL解决的问题。解决方案是'git + ssh:// git @ stash' – ihvan