7 ms·
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 sec
by hashhar 10y ago
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
- ryandrake 10y agoWow, great tip, thanks. One command down, hundreds to go.
- hashhar 10y agoI 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.
- Pxtl 10y agoWouldn'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.
- hashhar 10y agoI 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.
- LnxPrgr3 10y agoThe 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.