Explain how to revert maintenance branch commits

未关闭 适合新手
#319 4 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
git
领域
documentation

调研方向

从开发者指南文档以及 issue 中描述的维护分支工作流开始,包括示例分支、revert 命令、commit message 编辑和 PR 目标。将这些笔记整理成说明如何 revert 错误 backport 的 commit 的指南;完成的标准是将该流程添加到开发者指南中。

由索引模型根据 Issue 内容生成。

描述

topic-dev process type-feature

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-backport
  • git revert 9105879bfd7133ecbac67f3e9c0bacf6e477de5a
  • edit commit message as appropriate
  • create a PR targeting the branch of interest: https://github.com/python/cpython/pull/5439
主要语言
Python
星标
2.1k
派生
1k
平均合并
2 天 12 小时
30 天内合并 PR
12

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/devguide 的其他 Issue

查看 python/devguide 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。