Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@svenluijten
Last active September 23, 2019 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenluijten/14683a2c1e3a6a555269b7a2ab8877e7 to your computer and use it in GitHub Desktop.
Save svenluijten/14683a2c1e3a6a555269b7a2ab8877e7 to your computer and use it in GitHub Desktop.
#
# Available at https://git.io/sven-git-aliases
#
# run "curl -fsSL https://git.io/sven-git-aliases | sh" to apply these automagically.
#
git config alias.st "status -sb"
git config alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
git config alias.df "diff --"
git config alias.branch-name "rev-parse --abbrev-ref HEAD"
git config alias.find = "log --pretty=\"format:%Cblue%H %Cgreen%s%Creset\" --abbrev-commit --grep"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment