Feature Request: Hidden credentials file

I would love a way to add just  one  private file to a public repo that can hold credentials. 

I love making open source projects, but whenever I try to test that everything is working, I either have to put credentials in a private repo somewhere else or expose them to the world. This causes me headaches every time I return to a repo for a bug fix after some prolonged time. It would be nice to be able to save them in the repo without the security vulnerability of having them public to the world.

How does everyone handle this problem?

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideratiøn.

With that said, from the other projects I’ve been involved in, since private credentials are generally needed for various deployments the credentials are typically stored close to those deployments rather than with the code itself. For example, if using a PaaS host like Heroku, the credentials are stored as environment variables in the Heroku configuration for the application. For more information about this philosophy, you may want to check out the 12 Factor App page.