The post aims to summarize all pieces of information to set up a closed repository for 3 people in a competition. Please, feel free to add a problem to the list
- How can you set up a Git repository, where people A, B and C can pull?
You need to use ssh -protocol (ssh username@ipAddress), and provide ssh access to 3 people, by providing an account for them on the machine that hosts the repository (Source).
I recommend to provide SSH keys for your team members. Please, see the post. This allows them to clone by running, for instance:
git clone user@machine:/path/to/repo.git
A developed problem
How can you provide an account for 3 people?
If your files must be private, I recommend you to have an account at Github which costs you a few bucks. You can also set up a repo at your own server by Gitosis.
If your files can be open, I recommend you to use Github, since it is free for that purpose.
A more developed problem
How can you add an user to your Git repository?
You can add an user to your team by running the following code at your Git branch
git add remote UserName ssh://ADDressToTheRepo
Example of the command
git add remote schacon git://github.com/schacon/ticgit.git
A more-more developed problem
How can you add your friend's branch to your Git?
Please, see my answer at the thread.