Skip to content

Instantly share code, notes, and snippets.

@pierrejean-coudert
Last active November 7, 2018 21:30
Show Gist options
  • Save pierrejean-coudert/99b191a3faaec032ae7c to your computer and use it in GitHub Desktop.
Save pierrejean-coudert/99b191a3faaec032ae7c to your computer and use it in GitHub Desktop.
Git Alias in GitConfig
[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
c = commit
co = checkout
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
f = fetch --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment