Rebase - CI/CD用語集の定義
rebase は自分の commit を別のベース commit の上に再適用し、その SHA を書き換えて線形の履歴を作ります。git rebase main は自分の branch の commit を main の先端から始まるように移動させます。
rebase は自分の commit を別のベース commit の上に再適用し、その SHA を書き換えて線形の履歴を作ります。git rebase main は自分の branch の commit を main の先端から始まるように移動させます。
rebase は自分の commit を別のベース commit の上に再適用し、その SHA を書き換えて線形の履歴を作ります。git rebase main は自分の branch の commit を main の先端から始まるように移動させます。
注意
rebase は commit ハッシュを書き換えるため、他の人がすでに pull した commit を rebase してはいけません。共有 branch では、これによって他の全員が conflict に巻き込まれます。
関連ガイド
Interactive Rebase - CI/CD Glossary DefinitionInteractive Rebase: An interactive rebase (`git rebase -i`) opens an editor listing commits so you can reorde…
Fast-Forward Merge - CI/CD Glossary DefinitionFast-Forward Merge: A fast-forward merge happens when the target branch has no new commits since the source b…
Force Push - CI/CD Glossary DefinitionForce Push: A force push (`git push --force`) overwrites the remote branch with your local history, discardin…