DEV Community

Discussion on: What are your CLI go to commands and aliases?

Collapse
 
foresthoffman profile image
Forest Hoffman

Useful git history (I absolutely ❤️ this one):

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 lg

Clean up stray docker containers/images (it's a personal script not an alias):

docker-purge