Skip to content

Instantly share code, notes, and snippets.

@diogotito
Created August 27, 2024 21:11
Show Gist options
  • Save diogotito/bad1fee837fcdc92625e1cb9612cff45 to your computer and use it in GitHub Desktop.
Save diogotito/bad1fee837fcdc92625e1cb9612cff45 to your computer and use it in GitHub Desktop.
[core]
autocrlf = input
eol = lf
editor = vim
pager = delta
[push]
autoSetupRemote = true
[pull]
rebase = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[interactive]
diffFilter = delta --color-only --features=interactive
[init]
defaultBranch = master
[alias]
d = diff
s = switch
st = status --short
lga = log --oneline --all --graph --decorate
loga = log --oneline --all --graph --decorate
lg1 = 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)' --all
lg2 = 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)'
lg = lg1
ca = commit --all
cav = commit --all --verbose
cl = clean -ndx
co = checkout
ru = remote update
st = status
p = push
l = pull --ff-only
lazy = !lazygit
[credential]
helper = store
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[delta]
features = decorations
navigate = true
[delta "interactive"]
keep-plus-minus-markers = true
[delta "decorations"]
keep-plus-minus-markers = true
line-numbers = true
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment