【问题标题】:Good strategies in Git for maintaining seprate codebase for python 2.7 and python 3.6Git 中为 python 2.7 和 python 3.6 维护单独代码库的好策略
【发布时间】:2019-12-08 12:43:39
【问题描述】:

我是 Git 和 Github 的初学者。我需要有关处理维护 python 2.7 和 python 3 代码库的好方法/方法的帮助。 目前我们已经编写了代码来使用 python 2.7。但我们正在将其移植到 Python 3.6。我们仍然需要在 2.7 中维护和运行该应用程序,并在此期间进行一些错误修复。我需要有关如何处理这种情况的帮助以及维护分支/版本的详细说明。

目前只有 1 个主分支。基于引入的功能,我们在其上创建分支工作并合并到 master。我没有尝试过任何处理版本或如何处理 2.7 错误修复的方法

【问题讨论】:

标签: git tags branch release


【解决方案1】:

虽然this question 或博客文章“Support Py2+3 in two separate codebases: How to do it and why it’s great”都建议单独的分支或代码库(存储库),但它们的不同性质意味着:不合并。不涉及标签。

所以如果你有一个可以在 python2 和 python3 之间进行改进的错误修复,你会make a patch and apply it to your other branch or repository

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-12
    • 1970-01-01
    • 2017-11-21
    • 1970-01-01
    • 1970-01-01
    • 2018-02-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多