Reputation: 5811
I have a public GitHub repo with a bunch of files. For certain files, I want them to be in GitHub so I, and other contributors can use them, but I don't want everyone (the public) to be able to see them.
Is this possible?
Upvotes: 2
Views: 630
Reputation: 1323135
Git or GitHub cannot protect part of a public repository: if you can access said repository, you would clone everything.
That being said, you could add a content filter driver which would automatically on checkout:
However, any evolution of those files should be synchronized in a local clone of your separate private repository, and pushed from said local private clone.
Upvotes: 2