如何将Subversion存储库用作新项目的模板? [英] How to use a subversion repository as a template for new projects?

查看:71
本文介绍了如何将Subversion存储库用作新项目的模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个定制版本的Wordpress,供我们用作存储在svn存储库中的Web项目的模板.

I created a customised version of Wordpress for us to use as a template for our web projects, stored in an svn repository.

它具有各种属性集(忽略,wordpress +外部插件),以简化工作流程和更新.

It has various properties set (ignores, wordpress + plugins as externals) to ease workflow and updates.

我的问题是,如何将其用作其他项目/存储库的基础?

My question is, how to use this as a base for others projects / repositories?

  • 如果导出,它将丢失所有属性.

  • If you export, it loses all the properties.

如果签出,它是模板存储库的工作副本,不能导入/提交到新的存储库(?)

If you checkout, it is a working copy of the template repository and cannot be imported / committed to a new repository (?)

在这种情况下应该使用分支吗?这似乎不对,因为项目永远都不会合并回模板(尽管我想其中可能有一些部分).

Should branches be used in this case? It doesn't seem right, as the projects will never be merged back into the template (though I guess some parts might be).

推荐答案

可以将其作为分支是可以的.您可以跟踪主版本中的整体更新,并在适当时应用于分支.

It is ok to have then as branches. You can keep track of overall updates in the main version, and apply to the branches when appropriate.

Ps.如果您仍然想将其用作模板,则有一个已经回答过的问题:

Ps. if you still want to use it as a template, there is an already answered question about it: Is there a way to use a repository as a "template" to start a new repository?

这篇关于如何将Subversion存储库用作新项目的模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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