Thursday, 22 August 2013

Best route for open sourcing projects on GitHub/BitBucket, but not sharing sensitive files?

Best route for open sourcing projects on GitHub/BitBucket, but not sharing
sensitive files?

I want to open source some web projects I've done on GitHub, but there are
some files that contain database passwords and the likes that I don't want
to include obviously.
I could git rm those files, or add them to my .gitignore, but that would
remove them from git and revision control all together, which I don't want
to do.
How can I make it so when I push my changes to a repo, only certain files
are included?

No comments:

Post a Comment