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

后端 未结 4 854
你的背包
你的背包 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:03

    in SVN this is called 'ignoring files' so I assume it will be something similar in GIT - I don't use GIT so don't quote me on this, but I've found this reference on the GITHub website:

    http://github.com/guides/ignore-for-git

    Hope that helps

提交回复
热议问题