Hi everyone,
If I'm working with one other developer on the same project, but where we each have our own areas of work (which overlap, but not frequently) how would you recommend we set up git?
Hi everyone,
If I'm working with one other developer on the same project, but where we each have our own areas of work (which overlap, but not frequently) how would you recommend we set up git?
The simplest workflow remains a centralized one (especially with as few developers as you have in your team)
(much) more detail in this guide.
If you don't have an extra common environment (liek a GitHub for instance), simply create 2 repo per developers:
In this 2x2 repo setup, you can only push to your bare repo, waiting for your colleague to pull from it:
Or you can push directly to his public bare repo (for specific patches or contribution to dev2 tasks): dev2 will pull from his own public bare repo:
In both cases, reconciliation will happen in the private non-bare repo of the developer.