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