Skip to content

Instantly share code, notes, and snippets.

@ThomRoman
Forked from Klerith/git-alias.md
Last active February 23, 2022 21:59
Show Gist options
  • Save ThomRoman/18113fbd5d9ef104580b1db534e5fd2a to your computer and use it in GitHub Desktop.
Save ThomRoman/18113fbd5d9ef104580b1db534e5fd2a to your computer and use it in GitHub Desktop.
Useful Git Alias

git logda

git config --global alias.logda "log --oneline --graph --decorate --all

git s

git config --global alias.s "status

git sl => super 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"

git ss => status short

git config --global alias.ss "status --short"

Alternativa útil de status -sb

git config --global alias.sb "status -sb"

Eliminar alias

git config --global --unset alias.trololo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment