私は秘密のリポジオをsshキーでアクセスしています。ホスト名、ポート、sshファイル(_rsa)を.ssh/config file
に設定しました。その後、端末上でgit clone ssh://[email protected]
コマンドを実行します。できます。私は、端末上でcomposer update vendor/repo:dev-master
コマンドを実行すると、このコマンドは失敗し、次のエラーを与える:作者git clone --mirror failed
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