I use a git repository at work on GitHub. I know the basic commands for navigating and editing a repository but I don’t know how to set one up from scratch.
I would like to setup my own server for the git repo so my buddies can come help me with the game I’m developing for Android. But I don’t know how!
Would Gitosis be the best choice for this?
First, You need to create the repo (easy as
git init)Second, You need to give your buddies access to the repo.
You may use few options which git handles:
file://(direct access on LAN)Third, manage the access, permissions etc.
For this, the best option is gitolite, better than
gitosis. There is a good installation guide in the repo. The most tricky part is setting up passwordless access to the server (but this this is not actually git related). Using Ubuntu and Github you probably know what for are public ssh keys.Gitolite is the best option so far, but a bit complex. However, if you don’t want to use gitolite, you may still only to init the repo, and make the machine accessible, which is the simplest solution.
See also Setting Up the Server from the free Pro Git book. There are chapters about gitolite and gitosis as well.