‹ BackHN Continuity

Thread

Looking forward to Git 2.56 – and 3.0

207 points · 116 comments · chmaynard

  1. IshKebab · · focus · HN ↗
    Are they going to fix all the bad defaults in Git 3.0?
    1. onetoo · · focus · HN ↗
      For reference, what would you say those bad defaults are? (I would like to know if I should consider changing my configuration)
      1. IshKebab · · focus · HN ↗
        Here are a few:

        1. Git push should default to --force-with-lease --force-if-includes.

        2. push.autoSetupRemote should be enabled by default.

        3. The default conflict style should be zdiff3.

        4. diff.submodule should be 'log' by default (gives much nicer submodule diffs).

        5. Submodule updates / clones should be recursive by default. (There is a setting for this but I can't remember it.)

        1. mjmas · · focus · HN ↗
          Also would be nice:

          receive.denyCurrentBranch should be updateInstead by default (or at the very least mentioned in the help message, rather than it recommending ignore or warn or refuse, none of which do what is wanted)

        2. coldpie · · focus · HN ↗
          > 3. The default conflict style should be zdiff3.

          This one always baffled me. The default conflictstyle is so hard to read it's almost useless. Using diff3 is mandatory.

          I hadn't heard of zdiff3, I'll give it a shot.

      2. iib · · focus · HN ↗
        There is a post[1] on the gitbutler blog where they collect a subset of defaults that allegedly git core developers use. It's where I got most of my config from.

        [1] <a href="https:&#x2F;&#x2F;blog.gitbutler.com&#x2F;how-git-core-devs-configure-git" rel="nofollow">https:&#x2F;&#x2F;blog.gitbutler.com&#x2F;how-git-core-devs-configure-git

      3. Oxodao · · focus · HN ↗
        rerere should be on
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.