Skip to content

Instantly share code, notes, and snippets.

@adrianblade
Last active February 16, 2022 09:57
Show Gist options
  • Save adrianblade/4ca91f986df0320f9736150f82b2908a to your computer and use it in GitHub Desktop.
Save adrianblade/4ca91f986df0320f9736150f82b2908a to your computer and use it in GitHub Desktop.
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
s = status -s
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph--date=short
filelog = log -u
dl = "!git ll -1"
dlc = diff --cached HEAD^
mergec = merge --no-ff --no-commit
squash = merge --squash
gclean = clean -d -f -f
branches = !"git for-each-ref --sort='-authordate:iso8601' --format=' %(color:green)%(authordate:iso8601)%09%(color:white)%(refname:short)' refs/heads"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment