Preserve branch history with an explicit merge commit.
Section: Merge, Rebase, and Commit Selection
Merge with merge commit
bash
bash
git merge --no-ff feature/my-changeLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Merge, Rebase, and Commit Selection