git-源文件和存储库应该在同一台机器上吗? [英] git - should source files and repository be on the same machine?
问题描述
我计划安装基本的git服务器.关键是要以某种方式集中进行项目开发.
I plan to install a basic git server. The point is to, somehow, centralize projects development.
但是,我要执行此操作的计算机不是很好.我没有更多的可用空间了.
However, the computer where I would like to do this isn't that great. I have no more then a few gigabytes available.
这有意义吗?
- 每个工作站将具有自己的git安装和项目文件的副本.
- 它们通过ssh连接到存储库服务器;
- 服务器将仅具有有关项目的存储库信息.
可以吗?
-如果可能,它可以不使用服务器.但是,要点是允许每个人(3个人)在同一个项目上工作.我在这里迷路了...:)
- It can be server-less if possible. The main point is, however, to allow everyone (3 persons uhh) to work on the same project. I'm a bit lost here... :)
推荐答案
如果您设置了中央" git存储库服务器,则该服务器将具有推送限制),意思是:
If you set a "central" git repository server, then that server will have bare repositories only (because of push restriction), meaning:
- 不是全部个文件
- 但仅是这些文件的所有历史记录的压缩版本.
- not all the files
- but only a compressed version of all the history of those files.
如果您正在处理源(文本文件),则这些裸仓库所占用的空间并不重要.
但是,如果作为Web应用程序设计师,您有很多二进制文件(主要是图片),那么您需要将它们外部化到另一个存储中,同时将git repos保留在中央服务器中.
The space taken by those bare repos isn't that important if you are dealing with sources (text files).
But if you have, as a webapp designer, many binaries (mainly pictures), then you need to externalize them in another storage, while keeping your git repos in your central server.
当前解决方案是 git-annex .
The current solution is git-annex.
这篇关于git-源文件和存储库应该在同一台机器上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!