git checkout -m <branchname>

Switch to a different branch and merge changes

This command allows you to switch to a different branch and merge any changes from the current branch to the target branch.

The -m flag is short for --merge and indicates that the changes should be merged instead of creating a new branch.