我正处于Ruby on Rails课程的最开始,我只是想将我的应用程序推送到github。它没有工作,我现在已经整整排除了2天的故障。我无法从我购买课程的人那里得到任何支持,至少可以说是令人沮丧的。
这些是我给出的指示......
git init
git add --all
git commit -m "First commit"
git status
git remote add origin git@github.com:username/stukdo.git
git push -u origin master
这是返回的内容
ssh: Could not resolve hostname https: nodename nor servname provided, or not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我无法让它工作,不知道该怎么做。我已经搜索了那些确切的错误,我已经尝试了所有内容而且不知道。有人可以帮帮我吗?谢谢!
答案 0 :(得分:0)
git@github.com:username/stukdo.git
尝试
https://git@github.com/username/stukdo.git
并且我也不确定这是否是您应该使用这些凭据的存储库,但如果它是您自己的存储库,它应该是
https://<username>@github.com/<username>/<repo name>.git
将<username>
替换为您的用户名,将<repo name>
替换为您尝试推送的存储库
答案 1 :(得分:0)
您可能需要先确认使用git remote -v
添加了遥控器。