git推送指令配置,git push>>致命的:没有配置的推送目的地

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

git push

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'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值