Collection of Japanese and English Articles to Understand the Difference Between git merge --ff and --no-ff
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.
Japanese Articles
English Articles
I basically use git merge —no-ff origin/master.
git fetch origin master
git merge --no-ff origin/master
Furthermore, I’ve set an alias called nffmerge in .gitconfig, so I use git nffmerge origin/master.
~/.gitconfig
[alias]
nffmerge = merge --no-ff
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.