Using github to host public git repositories whilst ensuring that sensitive data files remain untracked
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 file gets pushed to heroku but not github. So I was thinking that I could push my master branch to heroku and create a seperate github branch and ensure that it's .gitignore file references my s3.yml file. I could then just do "git push origin github:master" to push the github branch to github.com This works fine for the first commit. But then I switch to my master branch, write some awesome code and then push it all to heroku. I then s
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.