当尝试一个新的GitHub存储库添加到我的项目,我得到GitHub的初始化麻烦
致命:远程起源已经存在。
然后,当我尝试做
git push -u origin master
我得到另一个错误,它给故障路径的错误。即使在我正确输入它之后,这条路仍然会显示出来,就像它不断恢复原来的错误一样。请参阅下面的截图。
$ git init
Reinitialized existing Git repository in /Users/richardewing/myapp/.git/
$ git commit -m "first commit"
On branch master
nothing to commit, working tree clean
$ git remote add origin https://github.com/ricke2005/Learn-rails-2.git
***fatal: remote origin already exists***.
$ git push -u origin master
fatal: unable to access 'https://github,com/ricke2005/Learn-rails-2.git/': Could not resolve host: github,com