免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3873 | 回复: 0

When Git tells you it failed to push some refs. [复制链接]

论坛徽章:
0
发表于 2012-05-21 06:37 |显示全部楼层
本帖最后由 opencourse 于 2012-05-21 19:12 编辑

当我尝试部署网站到Heroku.com时遇到以下错误警告
$git push heroku master   //master是branch的名字,第一次提交需要使用master.
      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

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

这个HEAD是存在的,我曾经查看过,发这个帖子的时候忘了它在哪个文件中。这里有篇文章可供参考http://edspencer.net/2008/04/whe ... failed-to-push.html
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP