PostsGit-WitIt: Spice Up Your Git Config With These Rhyming Aliases
Posted 09/29/2014

Git Up, Git Out

commit and init are two of git's slickest sounding commands. Of its 155 commands (in v2.2.1), there are only 5 that rhyme: commit, cvsexportcommit, init verify-commit, mailsplit. Commit and Init are the only two employed frequently by the average user.

The word Git has many rhymes. Despite this, the program lacks rhyming commands, and is in desperate need of some swagg. Git-WitIt provides 27 proxy rhymes for git commands, and that is a beautiful thang.

Take Notes On How I Grep't

admit merge
aquit blame
befit cherry-pick
bit grep
chit shortlog
emit push
fit rerere
flit stash
it checkout
kit config
knit rebase
legit pull
mitt fetch
nit prune
omit rm
permit add
pit bisect
refit clone
remit diff
shit revert
sit tag
skit log
split branch
sprit mv
unfit reset
witit status
writ reflog

...Go Ahead And Marinate On That For A Minute

Put The Two And Two Together (Installation)

The easiest way to Git-WitIt:

$ cd any/folder
$ wget https://raw.githubusercontent.com/richsoni/git-witit/master/gitwitit.ini
$ git config --global --add include.path `pwd`/gitwitit.inc

Test it by typing git witit in a git repository.

Thats it!!! Enjoy using Git-WitIt.

Dirty Details

The above steps should seamlessly install Git-WitIt, but some environments may need customization. Here are the dirty details, for exotic set up situations.

gitwitit.ini

Save it to some place, or even include it right inside of your .gitconfig

;; gitwitit.ini ;;
[alias]
  admit=merge
  aquit=blame
  befit=cherry-pick
  bit=grep
  chit=shortlog
  emit=push
  fit=rerere
  flit=stash
  it=checkout
  kit=config
  knit=rebase
  legit=pull
  mitt=fetch
  nit=prune
  omit=rm
  permit=add
  pit=bisect
  refit=clone
  remit=diff
  shit=revert
  sit=tag
  skit=log
  split=branch
  sprit=mv
  unfit=reset
  witit=status
  writ=reflog

Include The File

To include it, the .gitconfig needs an include pointing to the path:

;;.gitconfig;;
...
[include]
  path=~/dotfiles/git/gitwitit.ini;
...