Reputation: 12616
I am building a Rails app that I manage with Git. All is perfect, but I'd like keep a public version as well as a private one. That is:
The idea is that both versions should be up-to-date, with the difference that my private version's files contain passwords for my site, and the public version doesn't (or contains some default values as such).
I've been thinking of branches: master
(the public version) and some private one.
But it seems that I'd have to do a lot of merging after each commit.
Please, bear in mind, that I am a asking for I am still quite a noob at git.
Thanks folks!
Upvotes: 4
Views: 174
Reputation: 72745
I do Django development and keep all my sensitive data inside a single file which I put inside my .gitignore
. It's not version controlled and I keep separate versions of this on my deployment server and local dev machine.
Upvotes: 4
Reputation: 1323263
I would:
That way, no merge whatsoever, and no way to push sensitive data to a public repo.
Upvotes: 4