How Can I Merge Multiple Commits onto Another Branch as a Single Squashed Commit? To merge multiple commits from one branch onto another branch as a single squashed commit, you can use the following steps.