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

后端 未结 4 853
你的背包
你的背包 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 09:07

    You could maybe move the "dangerous" files away from git entirely - eg have them in ~/.yourapp or something like that. (that doesn't really answer the question directly but its what lots of software does - .fetchmail, .ssh, ...) and would permit other users to do the same.

提交回复
热议问题