Using github to host public git repositories whilst ensuring that sensitive data files remain untracked

后端 未结 4 852
你的背包
你的背包 2020-12-08 08:25

My app is hosted on Heroku and I have a public github repo too.

My app has a config file containing my amazon S3 credentials. It\'s important to ensure that the fil

4条回答
  •  心在旅途
    2020-12-08 08:58

    If you use a branch named heroku as your "alternative master" branch (with sensitive data) and your old master branch without the sensitive data, then you could always do

    git merge master
    

    So you can push heroku branch to heroku not the master branch.

提交回复
热议问题