试图检索更新的旧代码...
heroku git:clone -a appname
创建空的dir ...
所以:
$ git clone https://git.heroku.com/appname.git
Cloning into 'appname'...
warning: You appear to have cloned an empty repository.
$ git remote -v
heroku https://git.heroku.com/appname.git (fetch)
heroku https://git.heroku.com/appname.git (push)
$ git pull https://git.heroku.com/appname.git heroku
fatal: couldn't find remote ref heroku
git pull https://git.heroku.com/appname.git
fatal: couldn't find remote ref HEAD
通过Heroku bash和“ LS -LA”登录我可以检查我的应用程序中没有.git文件夹,但它可以在线上工作,我应该推开它Tru Heroku Cli没有其他方法(我不使用公共github)。
这是一个Django应用。
还尝试了我发现的一个答案:
git fetch -vv --all
Fetching heroku
Fetching here
fatal: couldn't find remote ref refs/heads/heroku
error: could not fetch here
git reset --hard HEAD
它只是重置我在本地的提交而没有获取远程git
git remote set-head heroku -a
error: Cannot determine remote HEAD
远程更新silent on silent on
$ git remote update
Fetching heroku
$
*app处于维护模式,这不应该影响,而是通过启用它并再次进行
编辑来尝试:我'我潜入可能的情况
克隆空链接的heroku帮助
heroku git:remote -a appname
它确实设置了远程设置,但是我没有正确的应用模板的正确名称,以防它是tru按钮的部署,我不知道,但我怀疑是这样。
因此,它与
** edit2:Heroku的此解决方案只是检索原始模板,但您不会从中进一步开发的更改
可能只能是通过Heroku支持解决,我正在等待答案。
或使用此黑客检索文件 https://code-examples.net.net/es/es/q/ 1478abd
Trying to retrieve old code for updating...
heroku git:clone -a appname
creates empty dir...
So:
$ git clone https://git.heroku.com/appname.git
Cloning into 'appname'...
warning: You appear to have cloned an empty repository.
$ git remote -v
heroku https://git.heroku.com/appname.git (fetch)
heroku https://git.heroku.com/appname.git (push)
$ git pull https://git.heroku.com/appname.git heroku
fatal: couldn't find remote ref heroku
git pull https://git.heroku.com/appname.git
fatal: couldn't find remote ref HEAD
login via heroku bash and "ls -la" i can check there is no .git folder in my app but it works online and i should have pushed it tru heroku cli as theres no other way ( i dont use public github).
It's a django app.
Also tried without understanding well an answer i found:
git fetch -vv --all
Fetching heroku
Fetching here
fatal: couldn't find remote ref refs/heads/heroku
error: could not fetch here
git reset --hard HEAD
which just resets a commit i had locally without fetching remote git
git remote set-head heroku -a
error: Cannot determine remote HEAD
remote update silent goes on
$ git remote update
Fetching heroku
$
*App was in maintenance mode, which shouldnt affect but tried by enabling it and do everything again
edit: i'm diving into this which might or not have been the case
heroku help for cloned empty link
heroku git:remote -a appname
it does set remote but i don't have the correct name of the app template used in case it was tru button deploy, which i don't know, but i doubt was the case.
So it's not the same case as Heroku "cloned an empty repository" message for a repository that isn't empty
**edit2: this solution by heroku just retrieves the original template, but not the changes that you would have developed further from it
It probably could only be resolved with the heroku support which im waiting answer.
Or with this hack to retrieve the files https://code-examples.net/es/q/1478abd
发布评论