使用包或框架时是否有使用版本控制的标准方法?
即,您是否将整个包放在 VCS 下,还是仅将您正在编程的组件放在下面?软件包本质上会升级,代码需要添加到 VCS 中,而且还有很多静态代码。
具体来说,我将致力于 Joomla,添加和构建模块,定制模块以及外观。最初只有我一个人,但随着项目的推进,可能会扩展到另外两名开发人员。我的反应只是 VCS,这意味着我知道一切都在那里,并且通过 CI 进行部署更容易(?)。
另一种方法是排除大部分未更改的代码,这可能容易出错且费力。
由于对此没有具体的答案,并且我正在寻找经验或最佳实践建议,因此我已将其标记为社区维基。
i.e. Do you put the whole package under VCS or just the components you are programming? Packages by there nature will get upgraded and that code will need to be added into the VCS, plus there is a lot of code that is static.
Specifically I am going to be working on Joomla, adding and building modules, customising modules and the look and feel. Initially this will be just me but will expand to possibly two more developers as the project ramps up. My reaction would be just to VCS the lot, it means that i know it is all there and deployment via CI is easier(?).
The alternative is to exclude the bulk of the code that is not being altered which could be error prone and laborious.
As there is not a specific answer for this and i am looking for either experience or best practice advice i have marked it community wiki.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常会做两件事之一(我使用 SVN):
如果您正在使用 SVN,并且想要使用外部文件,请执行以下操作:
...其中
libs
是您的库文件夹(将在其中设置此 SVN 属性),foldername 是应放置此特定库的子文件夹的名称。
I usually do one of two things (I use SVN):
svn:externals
to automatically update from the official SVN of the library/framework. This is less safe, but is sometimes nice, especially when you are a contributor to the library/framework and can fix bugs that may occur yourself.If you're using SVN, and want to use externals, do this:
...where
libs
is your library folder (onto which this SVN property will get set), andfoldername
is the name of the sub-folder in which this particular library should be placed.