如何在github上的计算机上设置ssh?

时间:2019-06-17 21:40:52

标签: windows git github ssh key

我尝试使用此tutorial设置ssh,但无法正常工作,我总是遇到相同的错误。我该如何设置?

我有这些键:

user@LAPTOP-LC8KG6GU MINGW64 ~/Documents/programmi_prove/helloworld_project (master)
$ ls -al ~/.ssh
total 32
drwxr-xr-x 1 user 197609    0 giu 17 16:02 ./
drwxr-xr-x 1 user 197609    0 giu 17 17:13 ../
-rw-r--r-- 1 user 197609 3389 giu 17 23:12 id_rsa
-rw-r--r-- 1 user 197609  748 giu 17 23:12 id_rsa.pub

这些是我的错误:

user@LAPTOP-LC8KG6GU MINGW64 ~/Documents/programmi_prove/helloworld_project (master)
$ git remote add origin https://github.com/speranza493/firstapp.git
fatal: remote origin already exists.

user@LAPTOP-LC8KG6GU MINGW64 ~/Documents/programmi_prove/helloworld_project (master)
$ git remote add origin https://github.com/speranza493/firstapp.git/
fatal: remote origin already exists.

user@LAPTOP-LC8KG6GU MINGW64 ~/Documents/programmi_prove/helloworld_project (master)
$ git push -u origin master
remote: Repository not found.
fatal: repository 'https://github.com/speranza493/firstapp.git/' not found

1 个答案:

答案 0 :(得分:0)

您的回购网址更改了吗?使用git remote rm origin删除遥控器,然后用git remote add origin YOURURLHERE

读取