GitHub никакой адрес, связанный с именем

Я продолжал иметь проблему с GitHub в эти дни, я создал новый репозиторий на GitHub, затем от локальной машины, я пытался продвинуть свой код к GitHub:

git remote add origin git@github.com:tmi/logger.git
fatal: remote origin already exists

git push origin master
ssh: github.com:uhdyi: no address associated with name
fatal: the remote end hung up unexpectedly

ssh git -v
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Fed 2007
ssh: git: no address associated with name

ssh git@github.com
Enter passphrase for key '/c/Documents and Settings/tmi/.ssh/id_rsa':
Error: HI, tmi! you've successfullly authenticated, but GitHub doesn not provide shell access
connection to github.com closed

git push origin master
ssh: github.com:uhdyi: no address associated with name
fatal: the remote end hung up unexpectedly

что случилось здесь?Спасибо!

7
задан mipadi 21 July 2010 в 17:36
поделиться

1 ответ

Смотрите:

fatal: remote origin already exists

У вас уже есть пульт с именем origin, и он все еще использует старый, недействительный URL. Откройте .git/config и измените URL для origin remote, или используйте подкоманду set-url для git remote:

$ git remote set-url origin git@github.com:tmi/logger.git
11
ответ дан 6 December 2019 в 09:18
поделиться
Другие вопросы по тегам:

Похожие вопросы: