Skip to content

Instantly share code, notes, and snippets.

@guypursey
Created December 5, 2022 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guypursey/69ad055d713c51b96731cec126597ae5 to your computer and use it in GitHub Desktop.
Save guypursey/69ad055d713c51b96731cec126597ae5 to your computer and use it in GitHub Desktop.
Helpful Git aliases
git config --global alias.alias "config --get-regexp ^alias\."
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.inked "log --color=always --pretty=format:'A:%Cgreen%ad%Creset %h %Cred%cd %C(brightblue white)%D%Creset %s' --date=format:'%Y/%m/%d@%H%M' --decorate=short --decorate-refs=tags --author-date-order"
git config --global alias.keyed "log --color=always --pretty=format:'C:%Cred%cd%Creset %h %Cgreen%ad %C(brightblue white)%D%Creset %s' --date=format:'%Y/%m/%d@%H%M' --decorate=short --decorate-refs=tags --date-order"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment