Skip to content

Instantly share code, notes, and snippets.

@Neoklosch
Last active November 29, 2019 14:44
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 Neoklosch/b8bbf6576318fe8d310e65ea3f90635f to your computer and use it in GitHub Desktop.
Save Neoklosch/b8bbf6576318fe8d310e65ea3f90635f to your computer and use it in GitHub Desktop.
git aliases
[alias]
hide = update-index
show = update-index
purge = remote prune origin
purge-dry = remote prune origin --dry-run
l = log --graph --oneline --all --decorate --topo-order
last = rebase -i HEAD~1
l2 = log --graph --abbrev-commit --decorate --format=format:"%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)" --all
l3 = log --graph --abbrev-commit --decorate --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n"" %C(white)%s%C(reset) %C(dim white)- %an%C(reset)" --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment