Skip to content

Instantly share code, notes, and snippets.

@ozzbetto
Forked from Klerith/git-alias.md
Last active March 18, 2022 17:39
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 ozzbetto/6b6b1ce12a0408a991c0d31832a1b546 to your computer and use it in GitHub Desktop.
Save ozzbetto/6b6b1ce12a0408a991c0d31832a1b546 to your computer and use it in GitHub Desktop.
Useful Git Alias
# Log
git config --global alias.lg "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"
# Status
git config --global alias.s status --short
# Alternativa útil de status
git config --global alias.s status -sb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment