Skip to content

Instantly share code, notes, and snippets.

@Klerith
Last active May 5, 2025 02:23
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

@d-rodas
Copy link

d-rodas commented Feb 21, 2024

¡Gracias por el alias!

@jucmoreno1
Copy link

Gracias por el alias, desde hoy lo adoptaré Slds!

@jrprueba
Copy link

Gracias por el Aporte!

@AntGovea
Copy link

image

@IvanHapo
Copy link

IvanHapo commented Aug 4, 2024

Excelente profe, muchas gracias

@unnativodigital
Copy link

mil gracias por tanto!

@cxndxr
Copy link

cxndxr commented Oct 31, 2024

Gracias se ve muy bien!

@LuisTul
Copy link

LuisTul commented Nov 14, 2024

Gracias !!

@JulianBcb07
Copy link

thank u profe

@Zavcorp
Copy link

Zavcorp commented Dec 25, 2024

Gracias! Excelent3

@OscarMoronE
Copy link

Gracias Master

@yaikelvl
Copy link

yaikelvl commented Jan 8, 2025

Muchas Gracias Fernando ayudan mucho la verdad.
Pd faltan las comillas de los status alias.

@DavidLVergaraBazalar
Copy link

Gracias.!

@quejuan52
Copy link

super profesor muchas gracias por tu conocimiento.

@egonzalez1579
Copy link

Muchas gracias Fernando

@leonardopablo
Copy link

Thank you professor 🙌

@carodriguezw
Copy link

Maestro de los maestros me sale este error !!!!
PS D:\CURSOS\GIT\04-Heroes> git lg
error: invalid color value: azul negrita
fatal: unable to parse --pretty format

error git lg

@carodriguezw
Copy link

Maestro de los maestros me sale este error!!!! PS D:\CURSOS\GIT\04-Heroes> error de git lg: valor de color no válido: azul negrita fatal: no se puede analizar --formato bonito

error git lg

@carodriguezw
Copy link

ya lo solucione deben de color en english los valores adjunto la solución

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=formato:'%C(blue bold)%h%C(reset) - %C(green bold)(%ar)%C(reset) %C(white)%s%C(reset) %C(white dim)- %an%C(reset)%C(yellow bold)%d%C(reset)' --all"

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