Skip to content

Instantly share code, notes, and snippets.

@JovanyCm1
Forked from Klerith/git-alias.md
Last active December 11, 2025 17:43
Show Gist options
  • Select an option

  • Save JovanyCm1/ac3e0775c9693ce94b51558eacf6ce7d to your computer and use it in GitHub Desktop.

Select an option

Save JovanyCm1/ac3e0775c9693ce94b51558eacf6ce7d 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

echo "alias dev='npm run dev'" >> ~/.bashrc

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