Squash Merge - CI/CD 用語集の定義
squash merge は、merge するときにブランチ上のすべての commit を 1 つの commit にまとめるので、対象ブランチはブランチの全履歴の代わりに 1 つのきれいな commit を受け取ります。
トレードオフ
中間の commit の粒度を失う代わりに、リニアで読みやすい main の履歴が得られます。多くのチームは protected branch で唯一許可される merge メソッドとして squash merge を有効にします。
関連ガイド
Three-Way Merge - CI/CD Glossary DefinitionThree-Way Merge: A three-way merge reconciles two diverged branches by comparing both tips against their comm…
Merge Conflict - CI/CD Glossary DefinitionMerge Conflict: A merge conflict occurs when Git cannot automatically reconcile two branches because both cha…
Pull Request - CI/CD Glossary DefinitionPull Request: A pull request (PR; merge request on GitLab) is a proposal to merge one branch into another. It…