$ git remote add origin git@github.com:lut/EvolutionApp.git
fatal: remote origin already exists.
$ git push -u origin master
fatal: 'EvolutionApp' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Meine Schlüssel wurden erfolgreich hinzugefügt
$ ssh -T git@github.com
Hi lut! You've successfully authenticated, but GitHub does not provide shell access.
Der Github-Artikel https://help.github.com/articles/generating-ssh-keys/ besagt, dass "Shell-Zugriff" kein Problem sein sollte? Was könnte das Problem sein?
Lösung des Problems
Versuchen Sie, die ssh-URL für den Remote-Ursprung neu zu definieren:
git remote set-url origin git@github.com:lut/EvolutionApp.git
Und versuche es erneut.
Es kann nur git remote set-url
eine vorhandene Remote-URL geändert werden (im Gegensatz zu git remote add
, um einen neuen Remote-Namen und eine neue URL hinzuzufügen)
. Hier war das Problem die URL der vorhandenen Remote „ origin
", EvolutionApp
: Sie musste durch eine gültige ersetzt werden.
Die Verwendung git config url."ssh://git@github.com/".insteadOf https://github.com/
hätte nicht geholfen, wenn man bedenkt, dass es überhaupt keine HTTPS-URL gab.
Keine Kommentare:
Kommentar veröffentlichen