Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We recently began experimenting with GIT and are looking to possibly switch over from SVN to GIT. I setup a server for git that is currently using the SSH protocol. There server is running CentOS 6.5. My colleagues want to use a GUI tool and I've read that GitHub for Windows app can be used on non Github repositories but for the life of me I haven't been able to get it to work with SSH protocol. I've thought about using HTTPS protocol instead but I want some kind of access control. With SSH it uses the UNIX file permissions. Is there a way to use HTTPS and still enforce read/write permissions? I have seen mention of Gitosis. Is that a could option for enforcing permissions over HTTPS? Do you know of any good resources for setting this up?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I recently setup a Git server where I work which required SSH and HTTP(S) access for public and private repositories. I first setup the entire thing manually which took some time, but then I came across Gitlab which seemed to solve all my problems - it's pretty much Github, but your own private hosted version. I'd strongly recommend using Gitlab over setting everything up manually, given that it has so many great features and is easily manageable.

There's a great tutorial here: https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md

However, if you do want to run Git through HTTP(S), you will need to setup Apache or Nginx to use the git-http-backend binary which does all the work. There are plenty of tutorials online depending on which configuration you decide to go with.

share|improve this answer
    
Wow, Gitlab looks really good and identical to Github. Thanks for the link and reference, I never heard of it before. I'll give that a try. Do you know if it will work with the Github for Windows app? –  greyfox Jan 7 at 23:02
    
I don't think it will work with the Github Windows application because it's specifically designed to be connected to your Github account. You could try out Git GUI, or Tortoise Git (integrates with Windows context menu). There's a few other clients here: git-scm.com/downloads/guis –  Jason Ilicic Jan 8 at 2:51
    
Thanks! I started using Sourcetree, so far it has been a good tool. –  greyfox Jan 9 at 16:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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