Git Tips
adit.io
adit.io
The most important part of the algorithm is the line "levenshtein(cmd, candidate, 0, 2, 1, 3) + 1;". This calculates the levenshtein distance between what you typed and valid commands, using different weights for different types of manipulations. In this case, 0 for swaps, 2 for substitutions, 1 for adds and 3 for deletes.
This[0]?
[0]: http://serverfault.com/questions/385920/disable-networked-ta...
Host *
ControlMaster auto
ControlPath /var/tmp/ssh_mux_%h_%p_%r
ControlPersist 4hThis is the one thing I recommend to everyone and anyone that uses git from the command line.
It always annoyed me when I make a typo and git almost always knows what I meant but doesn't correct it for me.
It was all a git config away.
I'd be interested in more git config options. Anyone know where I can find a full list? A quick google shows me the basic user name, email, etc options which I already have.
[1]https://www.kernel.org/pub/software/scm/git/docs/git-config....