Re:Better Git configuration
by gsylvie on Wednesday April 05, 2017 @09:36PM
(#14047241)
This has saved me:
I can always override an individual pull invocation with either "git pull --rebase" or "git pull --no-ff", making it a conscious choice when a fast-forward pull is not possible.
[ Parent
| on HN ]
Oh wow, this must be a recent feature, I remember looking for a way to configure `--ff-only` by default a few years ago and it didn't seem possible. I ended up making a git alias of `git puff` which calls pull with the `--ff-only` flag.
Looks like it showed up with commit b814da891e, and has been around since Git v2.0.0.
The online docs mention it in Git v2.1.0: https://git-scm.com/docs/git-config/2.1.0