Link Heroku app to Github repo. For what?

前端 未结 2 1633
悲&欢浪女
悲&欢浪女 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:56

    It's subtle, but your activity log has changed. When you add a repository in Heroku settings, the commit hashes in your activity log turn into links to GitHub, like so:

    enter image description here

    0 讨论(0)
  • 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.

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