When Git tells you it failed to push some refs
当我尝试部署网站到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/when-git-tells-you-it-failed-to-push.html
谢谢!