Mac:设置 SVN 进行个人开发
我已经看到我已经拥有 svn 和 svnserve (以及我家里的 .subversion 目录)。据我所知,svnserve 应该是 svn 服务器,但是我该如何运行它呢?我需要一些非常基本的东西,不链接到apache或任何服务器,只是为了个人开发而在我自己的计算机上版本文件(svn与我使用的TextMate集成)。
谢谢。
I've seen that i already have both svn and svnserve (and a .subversion dir in my home). svnserve should be svn server, as far as i know, but how can i run it? I need something very basic, not linked to apache or any server, just to version files on my own computer for personal development (svn is integrated with TextMate that i use).
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您只在自己的机器上需要它,您甚至不需要 svnserve。只需使用纯文件:url。
例如,使用以下命令创建存储库:
然后您可以使用 url file:///full/path/to/testrepo/ 访问
它 主文件夹中的 .subversion 目录仅用于设置。
If you need it only on your own machine, you don't even need svnserve. Just use plain file: urls.
for example, create a repository with:
Then you can access it with the url file:///full/path/to/testrepo/
The .subversion directory in you home folder is only intended for settings.
SVN 存储库通常通过命令行设置。这里有一本免费的书,深入介绍了如何使用 Subversion: http://svnbook.red- bean.com/
要快速开始,您可以阅读以下内容:http://svnbook.red-bean.com/en/1.0/ch05s02.html
设置存储库后,您可以使用任何您想要访问和操作存储库的 SVN 插件 - 在在这种情况下,TextMate - 实际上并不需要担心使用命令行来处理 subversion。
SVN repositories are typically set up through the command line. There is a freely available book here that goes in depth on how to use Subversion: http://svnbook.red-bean.com/
To get a quick start, you can just read this: http://svnbook.red-bean.com/en/1.0/ch05s02.html
Once you've set up the respository, you can use whatever SVN plugins you desire to access and manipulate the repository - in this case TextMate - and not really need to worry about using the command line to work with subversion.
我在我的家用电脑上设置了 SVN 以用于个人项目。我使用 file: url 通过我的家庭网络访问它,它工作得很好。我听到很多人说这是一个坏主意,但我从未听到过对其原因的明确讨论。它对我来说效果很好。当然,在家里我没有任何安全问题,因为我女儿不太可能有兴趣对我的 SVN 存储库进行未经授权的访问。
I have SVN set up on my home computer for personal projects. I access it using file: url's across my home network and it works just fine. I've heard a lot of people say this is a bad idea but I've never heard a clear discussion of why. It works quite well for me. Of course at home I don't have any security issues, as it's unlikely that my daughter has any interest in making unautorized access to my SVN repository.