Skip to content

Home

Disable fast forward merging by default

Disables the default fast forwarding on merge commits.

git config [--global] --add merge.ff false

# Examples
git config --global --add merge.ff false

git checkout master
git merge my-branch
# Will never fast forward even if it's possible

More like this

Start typing a keyphrase to see matching snippets.