git alias

Today I found out about git alias. Similar to the concept of aliases in bash shell, you can set up short cuts for commands.

You can either set them one by one:

git config --global alias.co checkout

Or set a bunch in the .gitconfig file:

[alias]
  co = checkout
  ci = commit
  st = status
  br = branch
  hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
  type = cat-file -t
  dump = cat-file -p

Reference