News for hackers. Stuff that matters.
Re:Better Git configuration by gsylvie on Wednesday April 05, 2017 @09:36PM (#14047241)
This has saved me:

    git config  --global pull.ff only
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.
Re:Better Git configuration by ninkendo on Thursday April 06, 2017 @10:45AM (#14050949)
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.
Re:Better Git configuration by gsylvie on Thursday April 06, 2017 @12:53PM (#14052300)
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

Re:Better Git configuration by gsylvie on Thursday April 06, 2017 @01:09AM (#14048076)
p.s. If you set this config, and a fast-forward pull is not possible, here is what git does:

    $ git pull
    fatal: Not possible to fast-forward, aborting.