Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My .gitconfig aliases. I will post more updates as I progress.
ci = commit
co = checkout
st = status
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(blue)%h%C(reset) - %C(green)%ar%C(reset) %C(black)%s%C(reset) %C(dim black)[%an]%C(reset)%C(red)%d%C(reset)' --all # git log with lot of detail and tree-view
ll = log --pretty=format:'%C(blue)%h%Cred%d %Creset%s%Cblue %C(dim black)[%an]%C(reset)' --decorate # short and practical version of alias.lg
dfl = diff --cached HEAD^ #diff last commit
la = "!git config -l | grep alias | cut -c 7-" # list of all aliases, just to remember them all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment