使用版本控制时 Web 开发文件的结构

发布于 2024-09-03 22:30:30 字数 393 浏览 10 评论 0原文

我计划对我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梓梦 2024-09-10 22:30:30

请查看此处了解标签、主干、分支的说明

Look here for explaination of tag, trunk, branch

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文