Skip to content

Instantly share code, notes, and snippets.

@johand
Created July 11, 2016 06:33
Show Gist options
  • Save johand/46f3266869fe9f82eb4715c1bbfa9ed2 to your computer and use it in GitHub Desktop.
Save johand/46f3266869fe9f82eb4715c1bbfa9ed2 to your computer and use it in GitHub Desktop.

Colección de alias para GIT

Información para agregar un alias aquí

  • Git log con colores
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
  • Git log en formato JSON
ll = log --pretty=format:'{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment