How to upload an application to github but delete sensitive authorization information?

I want to upload my application to github so that I can share parts of it for feedback and help ... but it contains information used to log in to other services, etc.

How to upload it to github without making it difficult to continue using this repository for deployment to heroku?

+3
git github heroku
source share
3 answers

On Heroku, you can use configuration vars to store configuration information.

http://docs.heroku.com/config-vars

This will save it from your repository.

+2
source share

If you want to save your configs in the git repository, you can use branching. First, make sure that sensitive information is removed from the repo history. Then you go to your main branch (master) and create a new branch named heroku. You put your configs in a branch to the hero and keep this branch local. You never push him to github. Whenever you want to expand, you check the branch for the hero, merge into the master changes and click on the hero.

0
source share

I found the easiest way to handle this is to simply change my passwords and API keys. Much easier than clearing your repo and rewriting its history to exclude any sensitive data. Just changing your loans is a much more reliable way. Of course, do not make new information.

0
source share

All Articles