简体   繁体   中英

How do I retrieve a git repository from Heroku?

I created an app and deployed it to Heroku, but I didn't have a github git repo (I know really bad idea!) and my local git repo has been deleted (just plain stupidity here). So I have no copies of my source. I need to make some updates and the only thing I can think of is doing a checkout from Heroku.

Is there a way to do a checkout from Heroku? Is there a way I can retrieve the source from the Heroku git repo?

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

git clone git@heroku.com:<YOUR_APP>.git

In 2014, you could do

heroku git:clone -a <your-app-name>

Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM