Skip to content

Instantly share code, notes, and snippets.

@DanielSundberg
Last active May 26, 2020 07:49
Show Gist options
  • Save DanielSundberg/41f8b21cf5e334449df5d5f1ea51817d to your computer and use it in GitHub Desktop.
Save DanielSundberg/41f8b21cf5e334449df5d5f1ea51817d to your computer and use it in GitHub Desktop.
Git config file (with pretty short log)
[alias]
co = checkout
br = branch
ci = commit
st = status
shortlog = log --pretty=oneline --abbrev-commit
alias = ! git config --get-regexp ^alias\\.
l = log --pretty=format:"%C(green)%h%x20%Creset%C(cyan)%<(16,trunc)%cr%C(yellow)%<(15,trunc)%an%Creset%C(red)%d%Creset%x20%<(75,trunc)%s"
l3 = l -3
l5 = l -5
l10 = l -10
l20 = l -20
[core]
autocrlf = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment