将版本控制软件与产品捆绑在一起
我想知道是否可以将版本控制软件与产品捆绑在一起,以便客户可以使用它来对最终产品运行所需的配置文件进行版本控制。
到目前为止,搜索仅给我提供了使用 SVN/Git 等在组织内对源代码进行版本控制的指导。是否有使用 SVN/Git 提供的 API(如果有)在最终产品中捆绑版本控制的示例?
I was wondering if its possible to bundle version control software with a product, so customers can use it to version control the configuration files required for the final product to run.
So far, searching has only given me pointers to using SVN/Git etc. for versioning source code within an organization. Are there any examples of using API(if any) provided by SVN/Git for bundling version control within a final product?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果您确实捆绑它,请将其作为可选组件。您的客户可能已经有了适当的工具。考虑使用链式安装来下载并安装所选工具。
我自己会选择GIT。提供所选工具的使用文档。
If you do bundle it, make it an optional component. Your clients may already have a tool in place. Consider using a chained install which downloads and installs the chosen tool.
I would choose GIT myself. Provide usage documentation for the choosen tool.
你当然可以做一些事情,比如间接使用 Git 系统;上一个问题中列出了一些资源:
在没有 Git 的情况下读取 Git 存储库
You could certainly do something like using the Git system indirectly; some resources are listed in this previous question:
Reading a Git repository, without Git
svnkit 为 java 提供“子”版本控制。 jGit 使“中央”存储库成为可选可能是有利的。
svnkit offers 'Sub'Versioning for java. jGit may be advantageous making a 'central' repository optional.
您没有指定您的应用程序是用什么语言编写的,所以我需要像其他人一样进行假设:)
第一个答案
它们使用 SubversionSharp(或 SVNSharp 甚至 SVN#)可以完成所有操作,所以我要提一下,SVN# 是一个好主意,如果您在 .NET 环境中 ...
您可能会认为,过了一段时间,就像 Paul 所做的那样
更多答案
你真正想实现什么目标?还要安装 SVN 服务器吗?嗯,除非您指定,否则您不应该这样做,就像 BillThor 建议的那样。
公司已经在使用它们,您最终会遇到的问题是,3 个最常见的版本控制产品是 SVN、Git 和 Mercurial,...您真的想为所有这些产品编写代码吗?
创建一个 S3 帐户并维护其中的文件进行版本控制,并且您的应用程序上传新版本,同时一个简单的网页可以访问它们进行查看,不是更容易吗?
只是贯穿一些你可能面临的问题的想法。
you do not specify what language your application is written in, so I need to assume, like everyone else :)
First answer
they use SubversionSharp (or SVNSharp or even SVN#) to do everything, so I would mention that SVN# is a good idea to use if you're in a .NET environment ...
you would probably think, after a while the same as Paul did
More answers
What are you really trying to accomplish? install a SVN Server as well? Well, you should not do that unless you specify it, just like BillThor suggests.
Companies use them already, problem you will end up is that, the 3 most common Versioning products are SVN, Git and Mercurial and ... do you really want to code for all of them?
Wouldn't be easier to create a S3 account and maintain the files there for versioning and you app uploads new versions while a simple webpage can access them to view?
just throughout some ideas as problems you could face.
Subversion 当然有自己的 C 风格 API:
http://svnbook。 red-bean.com/en/1.5/svn.developer.usingapi.html
Subversion certainly has it's own C style API:
http://svnbook.red-bean.com/en/1.5/svn.developer.usingapi.html