commands.sh

git merge

all

Merge branches.

More info →

Options (3)

-e, --editboolean

Edit the merge message

Example: git merge {{[-e|--edit]}} {{branch_name}}
-s, --strategyboolean

Merge using a specific strategy

Example: git merge {{[-s|--strategy]}} {{strategy}} {{[-X|--strategy-option]}} {{strategy_option}} {{branch_name}}
-X, --strategy-optionboolean

Merge using a specific strategy

Example: git merge {{[-s|--strategy]}} {{strategy}} {{[-X|--strategy-option]}} {{strategy_option}} {{branch_name}}

Examples (6)

Merge a branch into your current branch

git merge branch_name

Edit the merge message

git merge [-e|--edit] branch_name

Merge a branch and create a merge commit

git merge --no-ff branch_name

Copy the state of a branch into the working tree and stage it (Note: Use `git commit` to create the actual commit)

git merge --squash branch_name

Abort a merge in case of conflicts

git merge --abort

Merge using a specific strategy

git merge [-s|--strategy] strategy [-X|--strategy-option] strategy_option branch_name
made by @shridhargupta | data from tldr-pages