Taken from https://github.com/lewisacidic/fish-git-abbr with some minor changes and additions of our own.