On our server are three (in reality: thousands of) text files stored in a bare git repository: A.txt, B.txt, C.txt.
All three users should be able to clone the git repository with the files they are allowed to edit.
Is there any possibility to make this with git (...or mercurial)?
Idea: Can I make two clones of the bare git repository with the sparse checkout feature of git for the user "Foo" and "guest" wich include only the files they are allowed to see?
Any other (faster) idea?
You should:
A.txt
files)That means frequent merges to update the different branches and propagate the different modification.
Plus, with gitolite, you can control who can pull/push what (at a branch level), which means:
guest
branch.guest
branch and the users
branch, while being able to push the users
branch (or both branches if you want a user to update the content of guest
branch).