gpt4 book ai didi

node.js - 致命: Invalid refspec (Heroku nodejs)

转载 作者:太空宇宙 更新时间:2023-11-04 00:10:15 25 4
gpt4 key购买 nike

我在运行时遇到此错误:

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/*

最佳答案

我看到 ' https://git.heroku.com/damp-reef-82414.git' 开头有一个空格。

以防万一这是某种打字错误,请尝试:

cd /path/to/my/local/repo
git remote set-url heroku https://git.heroku.com/damp-reef-82414.git

如果需要,可以使用相同的命令切换到https://git.heroku.com/lit-earth-17372.git

关于node.js - 致命: Invalid refspec (Heroku nodejs),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50080622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com