2017-10-10 9 views
3

J'ai repo privé sur la cachette et l'accès avec la clé SSH. J'ai configuré le nom d'hôte, le port, le fichier ssh (_rsa) sur .ssh/config file. Plus tard, j'exécute la commande git clone ssh://[email protected] sur le terminal. Ça marche. Quand je lance des commandes composer update vendor/repo:dev-master sur le terminal, cette commande a échoué et donne l'erreur suivante:compositeur git clone --mirror a échoué

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.

+2

Je résolus problème en changeant url dans composer.json. La solution est 'git + ssh: // git @ stash' – ihvan

Répondre

0

Selon l'affiche originale:

I solved problem by changing url in composer.json. Solution is git+ssh://[email protected] .