git push>>致命的:没有配置的推送目的地 [英] git push >> fatal: no configured push destination
问题描述
我仍然会浏览RoR的一些指南,并且我在这里停留在部署演示应用程序
我遵循指示:
Microposts资源的完成现在是将存储库推送到GitHub的好时机:
$ git add。
$ git commit -a -m用演示程序完成
$ git push
这里发生的错误是推送部分..它输出了这个:
$ git push
致命:没有配置的推送目的地。
从命令行指定URL或使用
配置远程存储库git remote add< name> < URL>
git push< name>
所以我试着按照下面的指示来做这个命令:
$ git remote add demo_app'www.github.com/levelone/demo_app'
致命的:远程demo_app已经存在。
所以我推:
$ git push demo_app
fatal:'www.github.com/levelone/demo_app'似乎不是git仓库
fatal:The远程终端意外挂断
我能在这里做什么?任何帮助将不胜感激。
将github存储库添加为远程isn命令(或其中的URL)不太正确。如果我正确理解您的存储库名称,它应该是;
git remote add demo_app'git@github.com:levelone / demo_app .git'
I'm still going through some guides on RoR and I'm stuck here at Deploying The Demo App
I followed instructions:
With the completion of the Microposts resource, now is a good time to push the repository up to GitHub:
$ git add . $ git commit -a -m "Done with the demo app" $ git push
What happened wrong here was the push part.. it outputted this:
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
git push <name>
So I tried following the instructions by doing this command:
$ git remote add demo_app 'www.github.com/levelone/demo_app'
fatal: remote demo_app already exists.
So I push:
$ git push demo_app
fatal: 'www.github.com/levelone/demo_app' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
What can I do here? Any help would be much appreciated.
The command (or the URL in it) to add the github repository as a remote isn't quite correct. If I understand your repository name correctly, it should be;
git remote add demo_app 'git@github.com:levelone/demo_app.git'
这篇关于git push>>致命的:没有配置的推送目的地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!