Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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 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.

4 Answers 4

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  
+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
1  
@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, blogs.translucentcode.org/mick/archives/000230.html ) –  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
1  
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
1  
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
1  
@Thorbjørn: yes, the local protocol (progit.org/book/ch4-1.html) 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.