Reputation: 3818
First of all, I'm a fresher in Git. I come from SVN background, where developers work through checking in/out code against a shared repository.
What do I do with Git to enable multi-developer development?
From my understanding, is it correct if each developer will have his/her own individual local repository for each, but share one remote repository that would sit somewhere on the server.
Is my understanding correct? Where do I find a good reading on this?
Thanks in advance!
Upvotes: 0
Views: 180
Reputation: 467
The nice thing about Git is that it is extremely flexible. The best workflow for your situation is completely dependent on how you and your co-developers like to interact.
To get up and running in a multi-developer environment all you need to do is have some way to fetch / push between your repositories. This can either be directly between each other or via a central authority, or 'blessed' repository and can be done via ssh, a file share, https or even just duct-taping a thumb drive containing the 'blessed' repository to a carrier pigeon.
An excellent free resource when it comes to helping you get started is Pro Git, which includes a good chapter on Distributed Workflows. Also, have a look at "A successful branching model" for a well designed way to keep everything organised.
Upvotes: 0
Reputation: 5210
There are
The workflow of Distributed Version Control Systems like git in combination with github is the following:
Important: This repository "hierarchy" can be extended to other contributors which are contributors of your repository.
Good resources are the following:
Upvotes: 1
Reputation: 8043
Yes, your understanding is correct. You don't have to do anything to "enable" a multi-developer scenario.
You just need a repo where everyone can push changes to (and pull changes from).
This might help you.
Edit
Let me add a few more words. Even if git is a distributed source code management system, most of the times you will still have a "blessed" central repository, one you will consider to be your "official" one.
The difference is that, git being distributed, every developer will have a clone of that official repo, containing all the entire history.
The many reasons why this is such a Good Idea®, well, you'll figure them out on your own, trust me.
Upvotes: 2