On private development branches, favour rebase over merge, and encourage rewriting history for a clean tree
オープン
@cmnrd がすでに取り組んでいます。
2024年6月14日 から。
評価
この issue はまだ評価されていません。
説明
I've complained in the past on Zulip about the cleanliness of our git history trees.
Since our contributing guideline is rather indicative, I think it might be worth it to outline some suggestions to make our git history cleaner, such as:
- If working on a branch which nobody is actively using in a productive environment and pulling from the main branch is common, prefer
git pull --rebaseinstead of merge to keep the history linear - Be comfortable to rewrite history by using
rebasewithsquash/fixup/git commit --amendwhen solving linting/styling/typo problems, instead of have several "fix typo" or "minor fix" commits hanging around - Configure pre-commit hooks and ensure each commit is linted, instead of linting everything in one commit
- 主要言語
- 言語のデータがありません
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。