Skip to content

Instantly share code, notes, and snippets.

@almoce
Created October 28, 2020 11:49
Show Gist options
  • Save almoce/0d5beb06c15ff26305c015160c97fa31 to your computer and use it in GitHub Desktop.
Save almoce/0d5beb06c15ff26305c015160c97fa31 to your computer and use it in GitHub Desktop.
git configuration
[alias]
st = status
ca = commit -a
ct = checkout
cm = commit -a -m
logs = log --stat
lg = "!f() { git log --graph --all --format='%x09 %C(yellow reverse)%h%Creset %C(bold green)(%ar)%C(reset) %C(cyan bold)%an%Creset%x09 %C(magenta)%d%Creset %n %x09 %s'; }; f"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = 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(auto)%d%C(reset)'
lg2-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
[color]
ui = always
[core]
pager = delta --plus-color="#012800" --minus-color="#340001" --theme='Monokai Extended'
[interactive]
diffFilter = delta --color-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment