Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if it would be possible to install a git service for use by a small team. Would it be possible to install on a private network/locally or would it be more practical to install over a web network (e.g. a website domain).

Thanks and please point my in the right direction, ~Daniel

share|improve this question

closed as too broad by gnat, MichaelT, GlenH7, ratchet freak, Kilian Foth Sep 16 '14 at 8:18

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 6 down vote accepted

It's really simple to setup a git repo. Just do git init --bare on your server in a place that is accessible via ssh then your repo is ssh://your_host/path_to_repo.

share|improve this answer
+1, super easy to set up. – Zsub Mar 9 '11 at 8:00
@Zsub, yes, though it's much more difficult to create a public repository. – dan_waterworth Mar 9 '11 at 8:01
will it be password protected? – user Mar 28 '11 at 2:24
@Saad, it uses the same settings as ssh, so by default it is password protected, but if you put your public key onto the remote machine, it can authorise you without a password. (see, ) – dan_waterworth Mar 28 '11 at 6:24

In addition to dan_waterworths answer, I would like to suggest buying a subscription at, for example, GitHub. They probably have all the services you need, plus you don't need to worry about maintenance, backups, etc. and for a company with several developers, the cost of between $25 and $100 per month is quite reasonable.

share|improve this answer
note that it may be company policy that source must stay "in house". – user1249 Mar 9 '11 at 10:23
Might be, but is not specified :) I got the impression it had to be easy, so I suggested an external website. – Zsub Mar 9 '11 at 10:26
For in house you can get the GitHub Firewall Install. Which is your own private installation of GitHub in your own network. – Htbaa Mar 9 '11 at 10:58
If you need to go past github's $12/month plan, do yourself a favor and just purchase a low end VPS. You will end up getting more disk space for private repositories and won't have any limitation of number of private repositories repositories or users It will also cost you less in most cases (you can easily find reliable low end VPS for under 22 a month). – ryanzec Apr 21 '11 at 14:04

I found the "gitosis" package (installs easily on Ubuntu) to be very nice for a ssh-protected git repository if you need finer grained access control than "all with an ssh account can do everything".

Has worked well for us.

share|improve this answer

For a small team, a simple network share can be enough.

But if you need authentication and fine-grained ACL on your repos, I would recommend gitolite.

share|improve this answer
Will the network share work fine even with concurrent updates, or do you need to have it on a local disk? – user1249 Mar 9 '11 at 8:48
@Thorbjørn: yes, the local protocol ( supports concurrent updates. – VonC Mar 9 '11 at 9:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.