Simple shell configuration to help with simple typos while typing the git command.
Two aliases it and gti both mapped to git.
The first interpolator gi which removes a leading t from its params before passing them all to git.
A similar interpolator gt which removes a leading i from its params.
A set of other interpolators for all the git* mistakes (like gitr ebase or gita dd .)
$ it status
# Becomes: git status
...
$ gti pull
# Becomes: git pull
...
$ gi tdiff
# Becomes: git diff
...
$ gi push
# Becomes: git push
...
$ gt icommit
# Becomes: git commit
...
$ gt stash
# Becomes: git stash
...
$ gitr ebase
# Becomes: git rebase
...
$ gitb ranch
# Becomes: git branchFirst, clone this repository somewhere on your machine:
$ git clone git@github.com:kallmanation/gi.gitThen add the following line to your ~/.bashrc or ~/.zshrc or similar:
source path/to/gi/gircOpen the contents of girc and copy them into your ~/.bashrc or ~/.zshrc or similar.