Reputation: 5183
Going to work on a project where I will be handling back end development and some guy would be handling front end development. How can I setup the project on git so that the front end developer cannot see the code of back-end ?
I thought of separate branches :-
Master (backend + Frontend)
Backend
Frontend (frontend developer will have only access to this branch )
But after some R&D I came to know that its not possible in Git.
What are the alternatives ?
Upvotes: 0
Views: 100
Reputation: 1330102
Protected branches isn't available with Git alone. BitBucket (a Git repository hosting) provides it since Q4 2013.
But it is cleaner to work with separate repos (one got backend, one for frontend, and one for grouping them together through submodules)
That way, the relevant group of developers clones only the relevant repo it needs, and can manage as many branches as they want in said repo.
Upvotes: 1