“混帐 看起来不像是“尝试将本地分支链接到远程Heroku应用程序

问题描述 投票:2回答:1

我已经设置了一个Heroku应用程序,lucy-staging

Kurts-MacBook-Pro-2:lucy kurtpeek$ git remote -v
staging https://git.heroku.com/lucy-staging.git (fetch)
staging https://git.heroku.com/lucy-staging.git (push)

我有一个当地的分支机构custom-error-views,我想把它推到master遥控器的staging分支。我试图通过使用命令https://devcenter.heroku.com/articles/multiple-environments#advanced-linking-local-branches-to-remote-apps跟随git push staging custom-error-views:master,适用于推送Git子树:

Kurts-MacBook-Pro-2:lucy kurtpeek$ git subtree push staging custom-error-views:master --prefix lucy-web/
'custom-error-views:master' does not look like a ref

我不明白这个does not look like a ref错误;它似乎类似于Heroku文档中的development:master ref。任何人都可以指出这里有什么问题吗?

更新

从源代码(https://github.com/github/git-msysgit/blob/master/contrib/subtree/git-subtree.sh)可以看出,这个错误消息是专门针对git subtrees抛出的。它减少了git check-ref-format返回非零错误代码的事实:

Kurts-MacBook-Pro-2:lucy kurtpeek$ git check-ref-format custom-error-views:master
Kurts-MacBook-Pro-2:lucy kurtpeek$ echo $?
1
git heroku
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.