Skip to main content

How can I create shorthands for Git commands?

15 Aug 2013 - git

Set up aliases in your global ~/.gitconfig. Here’s a set of useful examples that you can add to your ~/.gitconfig file:

[alias]
  st = status
  ci = commit
  br = branch
  co = checkout
  df = diff
  lg = log -p

Now, you can use git st instead of git status.

References