1

My Client has a github private repo which is shared to me. I also want to setup a private repo with my developers for the same project.

The issue is that I do not want to push commits of my developers directly to the client repo, but want a separate commit history with my client and developer.

I read about branching but branching will make the new/developer branch visible to my Client.

Is there a way I can Get this form a single directory or I will heave to use two separate project directories, synced with the respective repo.

Mouloud85
  • 3,826
  • 5
  • 22
  • 42
Nik
  • 441
  • 1
  • 4
  • 18

1 Answers1

1

You could fork the private GitHub client repo: it would still be a private repo (even if you don't have a paying account)

Then your developers could push to that fork.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • This means I will have to maintain a two local project directories and sync them manually when required to push the changes to client? – Nik Aug 29 '14 at 07:35
  • @Nik no, you can push directly from your local clone of your fork to the original upstream repo. Normally, you would do a PR (Pull Request), but since you have direct access to the original repo, you can push from *one* local clone. – VonC Aug 29 '14 at 07:41
  • And Developer commits will not be visible to my Client – Nik Aug 29 '14 at 07:42
  • @Nik no, they won't be visible (they won't be "collaborator" of the original repo)... except for their username/email associated to the commits that you will be pushing. – VonC Aug 29 '14 at 07:44