git ci = git commit
git cia = git commit -a
!git ci
> git commit
Aliases are stored in ~/.gitconfig
path/to/project/.git/config
git config --global alias.ci commit git conifg --global alias.cia commit -a git config alias.hub push github
# Define 'git last' to show last commit message git config alias.last show -s HEAD^{commit} # Now lastwc is the word count of that message git config alias.lastwc '!git last | wc' # We can also prune off headers and pipe to 'pbcopy' # which puts it in the clipboard on OSX git config alias.lastcopy '!git last | tail -n+5 | pbcopy'
git config alias.freq 'history | cut -c 8- | grep git | sort | uniq -c | sort -n -r | head -n 5'
git freq