Menu

gitpiper

Disable fast forward merging by default git Code Snippet in 2025

configurationrepositoryintermediate

Last Updated: 24 April 2025

Disables the default fast forwarding on merge commits.

  • Use git config --add merge.ff false to disable fast-forward merging for all branches, even if it is possible.
  • You can use the --global flag to configure this option globally.
git config [--global] --add merge.ff false
git config --global --add merge.ff false git checkout master git merge my-branch # Will never fast forward even if it's possible

git snippet similar to Disable fast forward merging by default For You in April 2025

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2025 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️