如何从Heroku中检索git存储库?

lui*_*gal 13 git ruby-on-rails heroku

我创建了一个应用程序并将其部署到Heroku,但我没有github git repo(我知道真的很糟糕!)并且我的本地git repo已被删除(这里只是简单的愚蠢).所以我没有我的来源副本.我需要做一些更新,我唯一能想到的是从Heroku进行结账.

有没有办法从Heroku结帐?有没有办法从Heroku git repo中检索源代码?

shi*_*ara 26

您只需要通过heroku app克隆git repo链接.

git clone git@heroku.com:<YOUR_APP>.git
Run Code Online (Sandbox Code Playgroud)