当Git告诉你它没有推动一些裁判时, [英] When Git tells you it failed to push some refs,

查看:174
本文介绍了当Git告诉你它没有推动一些裁判时,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了rubyinstaller和msysgit,当我试图在heroku上部署radiant时,我收到以下警告信息:

  $ git push heroku master //我使用windows 
heroku接收推送
!heroku推送被拒绝,存储库为空。
到git@heroku.com:faculty.git
![远程拒绝] master->主(预接收钩拒绝)
错误:无法将一些文件推送到git @ heroku .com:faculty.git

当我

  $ git push git@heroku.com:faculty.git 
致命错误:无法远程引用HEAD

HEAD确实存在于我之前阅读的文件中。



when

  $ git fetch git@heroku.com:faculty.git 
ssh:没有与name / ssh关联的地址已经生成
致命:远程端意外挂断

如何解决这个问题?谢谢!

解决方案

只有怀疑,这是你第一次部署这个项目?您已经设置SSH?



请尝试以下步骤:

下载并安装: https://toolbelt.herokuapp.com

然后执行这个命令Heroku插件:heroku插件:安装git://github.com/ddollar/heroku-accounts.git



项目之后的箭头:Heroku帐户:add faculty - auto



在尝试命令推送之后


I had installed rubyinstaller and msysgit, When I tried to deploy radiant to heroku, i was given the following warning message

$git push heroku master  //I use windows
  heroku receiving push
!heroku push rejected,repository is empty.
  to git@heroku.com:faculty.git
![remote rejected]master->master(pre-receive hook declined)
Error: failed to push some refs to git@heroku.com:faculty.git

and when I

$git push git@heroku.com:faculty.git
fatal:Couldn't fine remote ref HEAD

the HEAD really exists in a file which i read before.

when

 $git fetch git@heroku.com:faculty.git
    ssh: no address associated with name  // ssh key had been generated 
    fatal: the remote end hung up unexpectedly 

How to solve this problem? thanks!

解决方案

Only a doubt, this is your first deploy this project? You have already setup SSH?

Try following these steps:

Download and install: https://toolbelt.herokuapp.com

Then do this command Heroku plugins: heroku plugins:install git://github.com/ddollar/heroku-accounts.git

arrow after your project: Heroku accounts: add faculty - auto

after try command push

这篇关于当Git告诉你它没有推动一些裁判时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆