在没有主机的情况下使用源代码管理
我将与 2 名开发人员合作开发一个应用程序,我们希望使用颠覆控制应用程序来避免冲突。
我没有具有静态 IP 的服务器,是否可以在我的计算机上设置虚拟主机并安装源代码控制,以便所有团队都可以更新源代码。
谢谢!
I will work with 2 developers on one application, and we want to use subversion control application to avoid conflicts.
I don't have a server with a static IP, is there anyway to setup a virtual host on my machine ans install the source control so that all the team can update the source code.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
只需在其中一台电脑上安装 svn 服务器即可。如果您运行的是 Windows,则获取类似 VisualSVN 服务器 的内容,如果您运行的是 Linux dist,则只需安装它。
其他人需要知道你当前的IP,然后当你在同一个局域网上时他们就可以访问服务器。
但归根结底,如果你没有固定的 IP 和真实的服务器,那么使用 git 这样的分布式系统可能会更容易,而不是 ssh。
Just install the svn server on one of the pc:s. If you are running windows then get something like VisualSVN server, and if you are running some Linux dist then just install it.
The other guys need to know you current ip, and then they can access the server when you are on the same lan.
But at the end of the day, if you don't have a fixed ip and a real server then it is probably easier to use a distributed system like git over ssh.
如前所述,您还可以考虑使用分布式版本控制系统,例如 GIT 或 Mercurial。这样,每个用户都将拥有存储库的本地副本。有关 DVCS 的更多信息,请参见此处。
As said before, you can also consider using a distributed version control system, such as GIT or Mercurial. This way, every user will have a local copy of the repository. More about DVCS here.
是的,但这意味着如果您的计算机不可用,那么它们就会有点卡住。如果您打算在您的机器上执行此操作,则不一定需要运行虚拟机,您只需在其上安装 Subversion 服务器,为您的计算机设置静态 IP 地址并像这样运行它那。他们从 <127.0.0.1> 签出,您也从 <127.0.0.1> 签出。
也许看看 git ?如果主存储库不可用,它将允许单独的源代码控制,然后他们可以将您的主存储库推回到主存储库。
Yes, but that means if your machine is unavailable then they're a bit stuck. If you're going to go down the route of doing it on your box you don't necessarily need to have a VM running, you can just install Subversion server onto it, set up a static IP address for your machine and run it like that. They check out from and you check out from <127.0.0.1>.
Maybe look at git? It'll allow individual source control for if the main repo isn't available, and then they can push back to it your main repo.
您可以使用共享文件系统(有关支持的类型,请参阅常见问题解答)并创建文件存储库使用
svnadmin
。You can use a shared filesystem (see the FAQ for supported types) and create a file repo with
svnadmin
.