您好我正试图用codeship来删除nodejs应用程序。 repo是在bitbucket上我设置了一切,当我进行更改提交并推送在heroku上部署应用程序时我在codeship中出现此错误
To git@heroku.com:awesomeqanda.git
! [remote rejected] ea759f32a266f24be65e6eeef9fd5f654bb707b4 -> master (shallow update not allowed)
error: failed to push some refs to 'git@heroku.com:appname.git'
我尝试过抓取所有内容都是最新的我还尝试了强制git推送和同样的错误。请帮忙
答案 0 :(得分:0)
这很有趣,但我前面遇到过类似的问题,即:
git push github master
To git@github.com:Answer_Bot-project/project.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:Answer_Bot-project/project.git'
一般解决方案是使用以下命令的变体:
git fetch github; git merge github/master
我建议你也看看Deploying Schnitzelpress on Heroku - Error,这对我帮助很大!
我希望它可以帮到你!
答案 1 :(得分:0)
在尝试推送之前,尝试使用以下命令从源代码库中使用unshallow获取;
git fetch --unshallow master
(您的来源/上游回购可能不会被称为master
,在这种情况下,您应该根据需要进行替换。