Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Add this to gitconfig file. It will automatically run the correct command after displaying what it is after a delay.

The value is in 0.1s (centiseconds) of seconds. So 20 means 2 seconds.

[help]

autocorrect = 20

OR run git config --global help.autocorrect 20



Wouldn't those be deciseconds? Also wtf unit. Use Millis or seconds as a float. Yay Linus making sure that git only makes sense to wizards like him.


The Linux kernel seems to have a centisecond obsession too. Probably from way back when HZ was 100 and your computer woke up once every centiseecond to make sure it still had nothing to do.


I don't know. I'm confused as is. I really hate when people break:

1. Conventional units.

2. Don't follow the XDG basedir spec for config files.

3. Make inconsistent command line flags.

4. Don't allow control of color output using a flag thinking they are smarter than me.


Wow, great tip, thanks. One command down, hundreds to go.


I once set up a schedule where I would open the gitconfig manpage and read at least one section of the settings. My gitconfig file growed to over 200 lines then.

Quite a lot of stuff isn't very helpful in there though.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: