Skip to content

Instantly share code, notes, and snippets.

@dvelez-jimenez
Created February 4, 2019 23:59
Show Gist options
  • Save dvelez-jimenez/3b990f6e06351d332a5fe954fe7e67e5 to your computer and use it in GitHub Desktop.
Save dvelez-jimenez/3b990f6e06351d332a5fe954fe7e67e5 to your computer and use it in GitHub Desktop.
Git log format

Usualmente realizo un comentario en un ticket en Jira con los commits asociados y un enlace a la interfaz web del git (Gitlab en este caso)

Me canse de hacerlo manualmente, así que:

git log --pretty=format:'[%h|https://{your-git-url-for-commit.com}/%h] - %s <%an>'

Ahora para no escribir eso todas las veces

Creo un alias.

git config --global alias.lgjr "log --pretty=format:'[%h|https://{your-git-url-for-commit.com}/%h] - %s <%an>'"

@DrojasFrontend
Copy link

[xxxxxxxxxx|https://git.xxxxxx.com/wlm-cl/xxxxxxxx/commit/xxxxxxx] - EA-2017 corregir key

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