简体   繁体   English

如何从连接到本地网络的另一台Mac访问本地存储库git

[英]How To access local repository git from another mac connected to local network

We are working on a team of developers, So we want to add a local git server between us. 我们正在与开发人员团队合作,因此我们想在我们之间添加本地git服务器。 We are developing on Appcelerator, my Question is how to access the local repository from other apple machines using local network? 我们正在Appcelerator上进行开发,我的问题是如何使用本地网络从其他Apple机器访问本地存储库?

Give a try to Gitlab or something similar. 尝试使用Gitlab或类似工具。 They have unlimited private users / repos / groups even for free. 他们有无限的私人用户/存储库/组,甚至是免费的。 Also, you can host it by your own in cloud or dedicated server. 另外,您可以将其自己托管在云或专用服务器中。

Anyway, I suggest you to read this chapter in 'Pro Git' book to discover all the possibilities. 无论如何,我建议您阅读“ Pro Git”一书中的这一章以发现所有可能性。 For example, it describes how you can set up your repo with HTTP(S) using Apache. 例如,它描述了如何使用Apache使用HTTP(S)设置存储库。

And, you definitely need to share git repo from user to user, than just share the directory as usual in Mac (I do not know how to do it on Mac, but on Linux you can use Samba, on Windows it is just regular sharing) and then access it like \\\\windows-machine\\\\shared\\repo\\.git (that's how Windows shares looks like in network). 而且,您绝对需要在每个用户之间共享git repo,而不仅仅是像在Mac上一样共享目录(我不知道在Mac上如何操作,但是在Linux上您可以使用Samba,在Windows上只是常规共享),然后像\\\\windows-machine\\\\shared\\repo\\.git一样访问它(这就是Windows共享在网络中的样子)。

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

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