3

Possible Duplicate:
Can I make fast forwarding be off by default in git?

Is there any way to globally make git not do a fast forward merge by default? I keep forgetting to add --no-ff when I finish a feature and merge my feature branch back into mainline.

Community
  • 1
  • 1
Drew
  • 12,578
  • 11
  • 58
  • 98
  • See [Can I make fast forwarding be off by default in git?](http://stackoverflow.com/questions/2500296/can-i-make-fast-forwarding-be-off-by-default-in-git) – Matthew Flaschen Apr 19 '12 at 18:24

2 Answers2

18

yes. set merge.ff with git config. ( http://schacon.github.com/git/git-config.html )

git config merge.ff false
Matthias
  • 3,458
  • 4
  • 27
  • 46
2

If you're using Git on the command line, you should be using aliases for common commands/options. They're the difference between making Git agonizing or useful:

alias gm="git merge --no-ff"
user229044
  • 232,980
  • 40
  • 330
  • 338