Link Heroku app to Github repo. For what?

前端 未结 2 1634
悲&欢浪女
悲&欢浪女 2021-02-05 08:18

Recently I saw this field in my heroku application settings.

Link your app to a GitHub repository to see commit diffs in the activity log.

2条回答
  •  日久生厌
    2021-02-05 08:59

    If you want to see your code in Github you must add Github as a remote repository

    git remote add origin https://git.heroku.com/repo.git
    git remote set-url --add origin https://github.com/username/repo.git
    

    Every time you push your commits they will push to both heroku and github

    git push origin
    

    Now when you click on the commit links, they will take you to github.

提交回复
热议问题