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.
Sign in to enable bookmarking, reminders, progress-tracking and more...
Related
git checkout -b <branchname>
git checkout -b <branchname1> <remote>/<branchname2>
git checkout <branchname>
git checkout -
git checkout --<pathname>
git checkout HEAD <pathname>
git checkout --ours <pathname>
git checkout --theirs <pathname>
git checkout --orphan <branchname>
git checkout -b <branchname> <commit>
git checkout -t <remote>/<branchname>