Prince Singh
Prince Singh

Reputation: 5183

git workflow for case where collaborators cannot see each other's work only main owner can

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 :-

  1. Master (backend + Frontend)

  2. Backend

  3. 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

Answers (1)

VonC
VonC

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

Related Questions