Trying to heroku git:clone after heroku fork yields an empty repository

后端 未结 1 1784
隐瞒了意图╮
隐瞒了意图╮ 2020-12-23 22:45

I just ran:

$ heroku fork -a oldapp newclonedapp

and it worked fine and runs etc. Now I want to pull the code down to work on it [I realize

相关标签:
1条回答
  • 2020-12-23 23:24

    You're not doing anything wrong, it's a known issue of fork that it doesn't clone the source app repository. Until the issue is resolved, you'll need to manually clone the source repository. Here's how I'd do it:

    $ git clone git@heroku.com:oldapp.git -o old newclonedapp
    $ cd newclonedapp
    $ heroku git:remote -a newclonedapp
    $ git push heroku master
    

    Basically, you clone the original repo to a new app directory, setup the heroku git remote and push to it to populate the new app repo.

    0 讨论(0)
提交回复
热议问题