648 B
648 B
title, tags, expertise, author, cover, firstSeen
| title | tags | expertise | author | cover | firstSeen |
|---|---|---|---|---|---|
| Disable fast forward merging by default | configuration,repository | intermediate | chalarangelo | blog_images/people-on-beach.jpg | 2021-07-03T05:00:00-04:00 |
Disables the default fast forwarding on merge commits.
- Use
git config --add merge.ff falseto disable fast-forward merging for all branches, even if it is possible. - You can use the
--globalflag 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