2014-03-29 58 views
0

将我的Ubuntu系统作为共享GIT存储库。我正在使用ubuntu12.04。我已经安装了git。如何更改为远程存储库将Ubuntu系统作为共享GIT存储库的步骤

+0

我发现这个很有用 - > https://www.kennwilson.com/notes/2013/08/self-hosted-remote-git-repositories/ – Crisp

+0

究竟是什么你的意思是“共享的git仓库”?你想从其他主机访问它吗?你需要为不同的用户提供某种访问控制吗? – michas

回答

1

您可以在主目录中使用git init --bare repo.git创建存储库。

之后,您可以使用git clone [email protected]:repo克隆此存储库(从另一个主机)。 (这只需要ssh访问你的主机。)

+0

谢谢我已成功创建远程存储库 – TELMILA