Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
feature-branch を -branchにマージしたいのですが、develop一部のコミットを 1 つに押しつぶし、他のコミットをそのまま取り込みます。-branchgit merge --squash featureからのどのコミットを押しつぶす必要があり、どれをそのまま採用するかを選択してから選択する可能性はありますか?feature
feature
develop
git merge --squash feature
いや。ピック、削除、スカッシュなどを行うには、インタラクティブリベースを使用する必要があります。
git rebase -i HEAD~4
最後の4つのコミットを決定できます。