如何设置SVN与那些在/ htdocs目录结构的文件 [英] How to set up SVN with files that are in an /htdocs directory structure

查看:169
本文介绍了如何设置SVN与那些在/ htdocs目录结构的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个轻微的问题围绕包裹我的头就如何使用PHP文件时,设置了颠覆。我我的所有文件保存在C:\\ WWW [nameOfProject] \\ htdocs中,我设置虚拟主机为每个项目。 (C:\\ WWW \\ PROJECT1 \\ htdocs中\\ index.php文件映射到的http://localhost/project1/index.php )。

I'm having a slight issue wrapping my head around on how to set up Subversion when working with php files. I store all my files at c:\www[nameOfProject]\htdocs and I setup virtual hosts for each project. (c:\www\project1\htdocs\index.php maps to http://localhost/project1/index.php).

你们如何处理使用SVN?可以说我有C:\\ svnrepos \\这是我存储每个回购每个项目。现在最好我想从位于c回购退房:\\ svnrepos \\ PROJECT1到c:\\ WWW \\ PROJECT1是否正确?但文件说把它做一个空目录,但我怎么能preVIEW我的code,那么不动的地方还有它第一次?

How do you guys handle using SVN? Lets say I have c:\svnrepos\ which is where I store each repo for each project. Now ideally I would want to check out from the repo at c:\svnrepos\project1 to c:\www\project1 correct? But the docs say to do it to an empty directory, but how can I preview my code then without moving it somewhere else first?

感谢您的帮助家伙!

推荐答案

有效地这样做的一种方法是检查出的树干之中,比如,C做你的发展:\\ WWW \\ preVIEW \\ PROJECT1和测试它与相应的虚拟主机或不同的URL在那里。

One way of doing this effectively is to do your development by checking out the trunk into, say, c:\www\preview\project1 and testing it with an appropriate virtual host or different url there.

当你得到它的工作,你会在树干上的各种版本的检查。当它成熟的移动到您的真正的主机/ URL,那么你

As you get it working, you will be checking in various versions of the trunk. When it's ripe to move over to your "real" host/url, then you


  1. 创建一个分支或标签,以反映这种(如分支机构/ rel.1)和

  2. 查看(SVN共)分支到C:\\ WWW \\ PROJECT1 \\ htdocs目录

之后,你可以做以下分支机构/ rel.1紧急bug修复,并把它们合并到主干下正在进行的工作。当另一个版本是准备好了,你

After that you can do urgent bug fixes under branches/rel.1, and merge them back into ongoing work under trunk. When another release is ready, you


  1. 请另一个分支(比如,分支机构/ rel.2)和

  2. 开关(SVN开关)C:\\ WWW \\ PROJECT1 \\ htdocs中的新分支

这样的话,你可以保持您的开发从与真正的服务的干扰,同时也切换回早期版本,如果你有问题。

This way, you can keep your development from interfering with the real service, and also switch back to an earlier release if you have problems.

有关更复杂,但急,bug修正,你可以

For a more complicated, but urgent, bugfix, you can


  1. 检查你的发展作为主干

  2. 开关C:\\ WWW \\ preVIEW \\ PROJECT1到当前版本分支

  3. 修正和C测试的bug:\\ WWW \\ preVIEW \\ PROJECT1,承诺在必要

  4. 在当前满意,做最后的签入,则c上的svn更新:\\ WWW \\ PROJECT1 \\ htdocs目录

  5. 开关C:\\ WWW \\ preVIEW \\ PROJECT1回主干,并进行开发

这篇关于如何设置SVN与那些在/ htdocs目录结构的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆