1

我在heroku上建立了我的舞台和生产环境,并推送到两个,它工作正常。我回来晚一天,是能推到分期,但得到了下面的消息有关git push production masterHeroku推向生产

fatal: 'production' does not appear to be a git repository 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
+0

检查你的'历史',并确保这实际上是你以前使用的命令。该错误表明,要么你不在正确的文件夹中,要么以这种方式使用'production'会导致git认为你将'production'作为存储库或git远程分支,其中没有任何这样的名称存在。换句话说,你可能有一个简单的错字应该比较容易发现。 – jefflunt 2013-04-30 14:05:17

+1

尝试运行'git remote -v',它会列出所有远程别名及其各自的URL。 – mmichael 2013-04-30 14:23:03

+0

@normalocity谢谢,但我很确定这是确切的命令,我写下来供我参考;我无法在历史中找到它,但我可以在哪里找到它的名称?有没有我能找到的命令?或者我可以在heroku的web gui中找到某处? – 2013-04-30 14:25:23

回答

3

要确认每个远程点,登录Heroku的,打开设置您的应用程序,然后匹配该应用的URL为git remote -v所显示的URL。然后,如果有必要,添加一个遥控器用于生产(即heroku)。