git merge
Merge branches. More information: https://git-scm.com/docs/git-merge.
-
Merge a branch into your current branch:
git merge {{branch_name}}
-
Edit the merge message:
git merge --edit {{branch_name}}
-
Merge a branch and create a merge commit:
git merge --no-ff {{branch_name}}
-
Abort a merge in case of conflicts:
git merge --abort
-
Merge using a specific strategy:
git merge --strategy {{strategy}} --strategy-option {{strategy_option}} {{branch_name}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.