We’re two people trying to get a new project up and running while working in one place and discussing our ideas at the same time.
- git would be the preferred versioning system as I’m familiar with it
- I’m using Linux while my colleague uses Windows
- the lesser need for administration the better (we want to focus on coding)
- we have an internet connection and a server (but keep 3. in mind)
A first idea was to host the code on github but as the code should remain private this is not an option, unfortunately. Another one was to use git-daemon to host one persons’s repository locally in a centralized fashion.
Do you have any advice on best (and easy) practice?
Here are a couple of options for doing everything locally to your network that don’t take much administration.
Sharing a directory over SMB that contains a bare repository
How about getting your Windows-using colleague to share a directory over SMB, so you can mount it with Samba. Then either one of you could just create a bare repository in that directory with:
… and both push to and pull from that.
Accessing a repository on your computer with SSH
If you’re happy to give your collaborator an account on your computer, you can easily create a shared bare repository that he can access with SSH. If his user account is called
bob, and you’rejnns, that’s just a matter of:Then he can add a remote like this:
… and you can just add the remote as:
I don’t think that counts as a lot of admin, but maybe opinions would vary on that 🙂
I feel I should also say that while you reject GitHub as not being an option because you’d have to pay for private repositories, you really don’t have to pay very much – I think $7 a month is a great deal for having private repositories on such a smooth service.