Push from github to heroku without downloading repo

前端 未结 4 1740
南笙
南笙 2020-12-01 01:08

I have a github repo that I want to push to a heroku node. A 3rd host will be co-ordinating this. As I\'m going to be doing this on a large scale I want to avoid having to d

4条回答
  •  春和景丽
    2020-12-01 01:15

    You can't push straight from Github to Heroku.

    You're going to have to use the third host to coordinate the push. This could be fired from a Github post-receive hook.

    To sync straight across use something like:

    git remote add github git@github.com:user/repo.git
    git remote add heroku git@heroku.com:app.git
    
    git push heroku refs/remotes/github/master:refs/heads/master
    

提交回复
热议问题