I’m looking for web designers, and would like to provide them RW access to certain frontend files only (html, erb files etc). I do not want them to have access to the core of my application on GitHub. Is there a way to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since those frontend files are directly related to your core app, the submodule solution (isolating those files in submodules) would be too cumbersome.
A possible solution, if you don’t want them to see at all your files in the core section, would be to setup a second private independent repo, initialized with only your frontend files.
There would be no direct link between the two repos, but at least:
If you don’t mind them to see the core files, but only want to prevent any modifications in the core app, then Mark Longair‘s answer is your solution.
Note: Mark reminds me in the comments below that a Git repo can have multiple roots (multiple commits with no parent).
That means, instead of communicating through mails and patches, you actually can import directly the
masterbranch of the second repo directly in your first private repo, as an independent branch (a branch with no common history with your current base code).From there, you can
cherry-pickthe commits you want to apply to your own code, or you can cherry-pick your own evolution to that independent branch, before pushing it back to the second repo (the one for the developers to work on).