Collection of Japanese and English Articles to Understand the Difference Between git merge --ff and --no-ff

Tadashi Shigeoka ·  Mon, May 8, 2017

I’ve read through Japanese and English articles to understand the difference between git merge —ff and —no-ff, so I’ll introduce them here.

Git

Difference Between git merge --ff and --no-ff

Japanese Articles

English Articles

I Basically Use git merge --no-ff origin/master

I basically use git merge —no-ff origin/master.

git fetch origin master
git merge --no-ff origin/master

Setting alias nffmerge in .gitconfig

Furthermore, I’ve set an alias called nffmerge in .gitconfig, so I use git nffmerge origin/master.

~/.gitconfig

[alias]
  nffmerge = merge --no-ff

Setting Default Behavior to merge.ff false

There’s also an approach to set the default behavior of git commands to merge.ff false.

git config --global --add merge.ff false
git config --global --add pull.ff only

That’s all from the Gemba.