Setting up a git repository on a server

6

I read through the other git questions here but couldn't really follow whether they are trying to do the same thing as I am. So if you find any duplicates, please let me know.

I have a central server with SSO installed. All my machines are connected through the lan to this server. I have also setup a remote git repository on this server. Now what I'd like to do is make the server act as a central repository. All my employees can commit their code to the server and the server pushes it to the remote git repository.

Can someone please help me out with this process? I am new to git and still learning how to use it effectively. So a step-by-step process or an existing document which I can refer to for this?

Also can I integrate it with SSO in any way?

Thanks.

lostInTransit

Posted 2010-05-04T10:51:10.180

Reputation: 349

If you want a howto guide, please share with us your server O/S. Your first question begins with "Also", which begs the question, what is the first question? – kmarsh – 2010-05-04T12:59:11.850

Edited the question. Sorry was a sloppy cut-paste which caused the confusion. Have added the server details in the comment to Niten's response. – lostInTransit – 2010-05-04T13:32:00.123

Answers

5

The Pro Git book, which is available free for online reading, has a great chapter on Git on the Server that should help clarify the options available and what you need to do to make them work.

lostInTransit

Posted 2010-05-04T10:51:10.180

Reputation: 349

1

What type of SSO are you using?

One possible route would be to use git's SSH transport between the workstations and your local server; when you use ssh:// rather than git://, your git server relies on SSH for authentication. This means you could potentially use any SSH or PAM compatible SSO technology (assuming a Unix/Linux server), or even just SSH public key authentication if that's good enough.

mshroyer

Posted 2010-05-04T10:51:10.180

Reputation: 368

We have the server set up on a Mac. We are using Atlassian Crowd for the SSO implementation – lostInTransit – 2010-05-04T13:29:33.793

Any help on this Niten? Thanks. – lostInTransit – 2010-05-06T08:49:39.793

Sorry, I took a quick look at Atlassian and (unless I've missed something) it doesn't actually seem to support PAM. If that's correct, then my idea above is bunk. – mshroyer – 2010-05-08T01:40:34.757