简体   繁体   English

在服务器上设置git存储库

[英]Setting up a git repository on a server

I had posted this question on superuser but didn't get a helpful response. 我已经在超级用户上发布了这个问题,但是没有得到有用的答复。 Thought I'd try here since the question does deal with some configurations and settings for using github. 以为我会在这里尝试,因为问题确实涉及使用github的一些配置和设置。

I have a central server with SSO installed. 我有一台安装了SSO的中央服务器。 All my machines are connected through the lan to this server. 我所有的机器都通过局域网连接到该服务器。 I have also setup a remote git repository on this server. 我还在此服务器上设置了一个远程git存储库。 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. 我所有的员工都可以将其代码提交到服务器,然后服务器将其推送到远程git存储库。

Can someone please help me out with this process? 有人可以帮我这个程序吗? I am new to git and still learning how to use it effectively. 我是git的新手,仍然在学习如何有效地使用它。 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? 还可以通过任何方式将其与SSO集成吗?

The server itself is setup on a Mac and SSO uses Atlassian Crowd. 服务器本身是在Mac上设置的,SSO使用Atlassian Crowd。

Thanks. 谢谢。

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. Pro Git书籍可免费在线阅读,其中有一章关于服务器上的Git很好的章节 ,应该有助于阐明可用的选项以及使它们起作用所需的操作。 I would recommend a careful review of the chapter before you decide on servers, protocols, etc. 建议您在决定服务器,协议等之前仔细阅读本章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM