【发布时间】:2018-10-09 08:59:40
【问题描述】:
我在运行时收到此错误:
git push heroku master
fatal: Invalid refspec ' https://git.heroku.com/damp-reef-82414.git'
Heroku Git URL - https://git.heroku.com/lit-earth-17372.git
https://lit-earth-17372.herokuapp.com/
https://git.heroku.com/damp-reef-82414.git 之前是 heroku 上的目录, 当前文件夹通过 herolu create 命令的链接是https://lit-earth-17372.herokuapp.com/
.git/config
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "abc"]
url = https://git.heroku.com/lit-earth-17372.git
fetch = +refs/heads/*:refs/remotes/abc/*
[remote "origin"]
fetch = refs/heads/*:refs/remotes/origin/*
【问题讨论】:
-
您能否尝试清楚您的问题是什么,也许您可以提供您收到的错误消息。
-
您是否尝试调整您的
heroku遥控器使其指向lit-earth-17372而不是damp-reef-82414? -
是的,我之前有 'damp-reef-82414' 域,'lit-earth-17372' 是当前的@Chris
-
在heroku上推送它时我遇到了这个错误。 'damp-reef-82414' 是之前其他项目的域之一,很久以前就被删除了,lit-earth-17372 是当前的@antzshrek
-
@Kapoor,您尝试过 VonC 的建议吗?我想他可能有解决办法。