使用版本控制时 Web 开发文件的结构
我计划对我的 Web 应用程序使用版本控制 (Mercurial)。我将首先在我的笔记本电脑上尝试一下。我想现在我应该重组我的文件夹,将它们全部放在同一个存储库中。
我正在使用 PHP 框架(Kohana 3),所以我的文件夹结构目前如下。
kohana
+ application
+ modules
+ system
htdocs
+ css
+ images
+ js
index
我不太确定完成这项工作的最佳方法,但我想如果我可以引用同一个存储库中的所有文件(css、js 和 php),那就太好了。我应该如何构建我的文件来做到这一点?当我在网上查看其他可能的结构时,我看到的主干、标签、分支是什么?
谢谢。
I am planning on using Version Control (Mercurial) for my web applications. I am going to try it out first on my laptop. I would think now that I should restructure my folders to get them all in the same respository.
I am using a PHP framework (Kohana 3) so my folder structure is as follows at the moment.
kohana
+ application
+ modules
+ system
htdocs
+ css
+ images
+ js
index
I'm not really sure of the best way to make this work, but I was thinking it would be good if I could reference all my files in the same repository (css, js, and php). How should I structure my files to do that? And what is this trunk, tag, branch stuff I see when I look at other possible structures online?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请查看此处了解标签、主干、分支的说明
Look here for explaination of tag, trunk, branch