开发者

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 rep开发者_高级运维o?


You just need clone you git repo link by your heroku app.

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


In 2014, you could do

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

Documentation

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜