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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 2×2 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.