gpt4 book ai didi

visual-studio - 源代码控制 - 开源项目

转载 作者:行者123 更新时间:2023-12-04 06:30:12 24 4
gpt4 key购买 nike

我遇到了一个共同的困境。

很多时候,我们公司依靠使用开源库来完成工作,但偶尔我们必须修改它们以使其在不同平台上运行,修复错误等。

我们使用 subversion 的组合:TortoiseSVN 和 AnkhSVN。

有没有办法让以下场景与 SVN 一起使用:

  • Devs 将开源项目的源代码添加到我们的 subversion(通常通过导出,取决于他们使用的源代码控制)
  • 开发人员对开源代码进行了几处更改
  • 开源项目创建者自己进行了一些改进和错误修复
  • 我们如何将开源项目的更改合并到我们的 subversion 中?

  • 如果 SVN 不能做到这一点,是否有更好的源代码控制选项供我们选择?如果可能,我们更喜欢与 Visual Studio 集成的一个。

    最佳答案

    Subversion当然可以做到这一点。这种事情发生在分布式 VCS 出现之前。见 Vendor Branches部分来自 Chapter 4. Branching and Merging在颠覆书中。

    引用:

    Managing vendor branches generally works like this: first, you create a top-level directory (such as /vendor) to hold the vendor branches. Then you import the third-party code into a subdirectory of that top-level directory. You then copy that subdirectory into your main development branch (e.g., /trunk) at the appropriate location. You always make your local changes in the main development branch. With each new release of the code you are tracking, you bring it into the vendor branch and merge the changes into /trunk, resolving whatever conflicts occur between your local changes and the upstream changes.

    关于visual-studio - 源代码控制 - 开源项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5755800/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com