Explain how to revert maintenance branch commits
未关闭
适合新手
还没有人认领这个 Issue。
topic-dev process
type-feature
- 主要语言
- Python
- 星标
- 2.1k
- 派生
- 1k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 12
描述
It came up in https://bugs.python.org/issue32690 that it's not at all clear how to revert commits to a maintenance branch if we decide that a change shouldn't have been backported after all.
Transferring over my notes from that issue to be cleaned up and added to the dev guide:
- check out the branch of interest and ensure it's up to date
git checkout -b bpo-32690-revert-3.6-backportgit revert 9105879bfd7133ecbac67f3e9c0bacf6e477de5a- edit commit message as appropriate
- create a PR targeting the branch of interest: https://github.com/python/cpython/pull/5439
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从开发者指南文档以及 issue 中描述的维护分支工作流开始,包括示例分支、revert 命令、commit message 编辑和 PR 目标。将这些笔记整理成说明如何 revert 错误 backport 的 commit 的指南;完成的标准是将该流程添加到开发者指南中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 62/100