git - 源文件和存储库应该在同一台机器上吗?
我计划安装一个基本的 git 服务器。关键是要以某种方式集中项目开发。
然而,我想要执行此操作的计算机并不是那么好。我的可用空间已不多于几千兆字节。
这有道理吗?
- 每个工作站都有自己的 git 安装和自己的项目文件副本。
- 他们通过 ssh 连接到存储库服务器;
- 服务器将仅具有有关该项目的存储库信息。
这样可以吗?
编辑: - 如果可能的话,它可以是无服务器的。然而,要点是允许每个人(3 个人呃)在同一个项目上工作。我在这里有点迷失...:)
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.
Does this make sense?
- Each workstation will have their own git instalation and their own copy of project files.
- They connect to the repository server via ssh;
- The server will have only the repositoty information about the project.
Is this ok?
Edit:
- 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... :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您设置“中央”git 存储库服务器,那么该服务器将具有 仅裸存储库(因为推送限制),意思是:
如果您处理源(文本文件),这些裸存储库占用的空间并不那么重要。
但是,如果您作为 Web 应用程序设计者拥有许多二进制文件(主要是图片),那么您需要将它们外部化到另一个存储中,同时将 git 存储库保留在中央服务器中。
当前的解决方案是 git-annex。
If you set a "central" git repository server, then that server will have bare repositories only (because of push restriction), meaning:
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.
The current solution is git-annex.
不完全确定你在问什么,但是......
Git 是一个分布式版本控制系统(dvcs),所以只要你有一个存储库,你就拥有整个存储库的所有文件和所有历史记录。
恕我直言,在商业开发环境中,拥有可以进行官方构建的中央存储库是有意义的,然后您的开发人员可以推送和拉入该存储库,或者“看门人”可以整理开发人员的更改并推送到中央存储库。
也许看看 gitosis、gitolite、 github
Not entirely sure what you are asking but.....
Git is a distributed version control system (dvcs), so where you have a repository you have all the files and all the history for the entire repository.
IMHO in a commercial development environment, it makes sense to have central repository from which official builds can be made, then your developers can push and pull into that repository or a "gatekeeper" can collate changes from your developers and push into the central repository.
Perhaps look at gitosis, gitolite, github
您可以使用类似 gitosis 为此。这确实是一种常见的设置。
You can use a program like gitosis for that. And this is indeed a common setup.