创建自己的 svn 存储库托管
一周以来,我使用 ToirtoiseSVN 和 AnkhSVN 以及 GoogleCode 和 sourceforge.net 作为我的项目托管。对我来说,在创建下一个项目之前填写所有这些表格是令人沮丧的。所以我开始考虑我自己的存储库托管。
我可以使用简单的文件托管等并安装软件(例如使用 Google 或 SourceForge)来拥有自己的 SVN 服务器吗?我的观点是在互联网上拥有独立的存储库,而不需要所有这些无用的 UI 界面,这些界面让我可以通过 Google 和 SF 来管理我的版本控制。我不想利用现有的托管服务,如 GoogleCode 等 - 我想独立于它们! ;)
或者也许是我自己的存储库托管和免费的其他方式;)请不要告诉我我受商业托管的摆布......: /
Since a week I use ToirtoiseSVN and AnkhSVN and GoogleCode and sourceforge.net as my project hosting. For me it's frustrating to fill all this forms before create next project. So I start thinking about my own repository hosting.
Can I use simple file hosting etc. and install there software like use Google or SourceForge to have my own SVN Server? My point is to have independent repository in internet without all this uselessly UI interface which give me Google and SF to administrate my version control. I don't want to take advantage of already existing hosting services like GoogleCode etc. - I want to be independent from them! ;)
Or maybe it's other way to do my own repository hosting and FREE ;) Please don't tell me that I'm at mercy of commercial hosting... :/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
VisualSVN 服务器是最容易启动和运行的
VisualSVN server is the easiest to get up and running
设置一个简单的 Subversion 存储库非常容易,特别是如果它只适合您的话。实际上,如果只是为了你,你可以在本地磁盘上建立一个 svn 存储库,而不必设置任何服务器。有时我会为自己的小项目这样做,只是为了了解我的工作历史。
假设您在 Unix 上,您可以使用以下命令创建存储库:
svnadmin create /path/to/repo
并使用以下命令签出:
svn checkout file:///path/to/repo
加上一点配置:-)。如果您需要有关此类设置的更多详细信息,请告诉我。
It is very easy to set up a simple subversion repository, especially if it just for you. Actually, if it is just for you, you may set up a svn repository on local disk and you do not have to setup any server. I do that sometimes for my own little projects, just to have the history of my work.
Assuming you are on Unix, you create a repository with:
svnadmin create /path/to/repo
and checkout with:
svn checkout file:///path/to/repo
Plus just a little configuration:-). Let me know if you need more details on this kind of setup.
您无法在标准共享网络托管包上安装 Subversion。您将需要明确提供颠覆的专门托管,或租用小型(可能是虚拟)服务器并在其上安装所需的所有软件(最灵活的解决方案,但也需要相当多的知识才能安全设置)。
另外,请查看我最近关于 serverfault 的问题: 经济实惠的组合 Ruby/Rails/Redmine +颠覆托管?
You can't install subversion on a standard shared web hosting package. You will need either specialized hosting that explicitly provides subversion, or rent a small (possibly virtual) server and install all the software you need on that (the most flexible solution, but also requires quite a bit of knowledge to set up securely).
Also, check out my recent question on serverfault: Affordable combined Ruby/Rails/Redmine + Subversion hosting?
如果您有自己的服务器,那么您可以简单地按照任何操作系统的教程进行操作。
我有 ubuntu 服务器并遵循本教程 https://help.ubuntu.com/community/Subversion
If you have your own server, then you can simply follow a tutorial for whatever os.
I have ubuntu server and followed this tutorial https://help.ubuntu.com/community/Subversion
您可以使用分布式版本控制系统,例如 Mercurial 或 Git。使用这些系统,您只需创建一个本地存储库即可使用。
对于备份/远程访问,您只需将文件夹上传到网络存储即可。
You could use a distributed version control system like Mercurial or Git. With these systems you simply create a local repository to work against.
For backup/remote access you simply upload the folder to a web storage.
设置 VisualSVN,就像 @dr 建议的那样,需要您自己的 Windows 服务器来安装它(即便宜的 VPS)。你可以在 Linux 上运行 svn,而且 Linux vps 比 Windows 便宜,所以如果你想走这条路,不应该有太大的经济负担。
如果您想要纯粹的免费,那么不幸的是您将不得不坚持填写表格:-)
Setting up VisualSVN, like @dr suggested, would require your own windows server to install it on (ie a cheap VPS). You can get svn running on linux and linux vps are event cheaper than windows so shouldn't be too much of a financial burden if you want to go this route.
If you want pure free, then I feel unfortunatly you will have to stick with filling out forms :-)