logoalt Hacker News

onetootoday at 6:50 AM3 repliesview on HN

For reference, what would you say those bad defaults are? (I would like to know if I should consider changing my configuration)


Replies

iibtoday at 6:58 AM

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] https://blog.gitbutler.com/how-git-core-devs-configure-git

IshKebabtoday at 6:57 AM

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.)

Oxodaotoday at 8:31 AM

rerere should be on