Skip to content

Instantly share code, notes, and snippets.

@dharrigan
Created July 22, 2021 14:23
Show Gist options
  • Save dharrigan/8b292708108d32fc83fc6e9d25e437d0 to your computer and use it in GitHub Desktop.
Save dharrigan/8b292708108d32fc83fc6e9d25e437d0 to your computer and use it in GitHub Desktop.
[user]
name = David Harrigan
email = dharrigan@gmail.com
signingkey = dharrigan@gmail.com
[includeIf "gitdir:~/development/workspaces/healthunlocked/"]
path = .gitconfig-healthunlocked
[init]
templateDir = ~/.git-templates
defaultBranch = master
[core]
commitGraph = true
editor = vim
excludesfile = ~/.gitignore_global
hooksPath = ~/.git-templates/hooks
pager = delta
preloadindex = true
whitespace = trailing-space,space-before-tab
[interactive]
diffFilter = delta --color-only
[log]
date = auto:human
[merge]
tool = meld
defaultToUpstream = true
ff = true
[help]
autocorrect = 1
[color]
branch = auto
diff = auto
status = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
algorithm = patience
renames = copies
mnemonicprefix = true
tool = meld
indentHeuristic = true
colorMoved = dimmed_zebra
noprefix = true
[diff "clj"]
xfuncname = "^(\\((def|ns)([^\\[])*).*$"
[advice]
detachedHead = false
pushNonFastForward = false
statusHints = false
addEmptyPathspec = false
[rebase]
backend = apply
autostash = true
autosquash = true
abbreviateCommands = true
[branch]
autosetuprebase = always
[rerere]
enabled = true
autoUpdate = true
[receive]
denyCurrentBranch = ignore
;[pager]
; log = diff-highlight | less -FXI
; show = diff-highlight | less -FXI
; diff = diff-highlight | less -FXI
[alias]
alias = config --get-regexp '^alias\\.'
aliases = !git alias
branches = branch -a
ca = !git add --all && git commit
co = checkout
count = rev-list --count HEAD
cs = commit -S
diffall = diff HEAD
diffst = diff --staged
forget = rm --cached
fix = commit --fixup
ignore = update-index --assume-unchanged
# ignored = !git ls-files -v | grep "^[[:lower:]]"
ignored = ls-files -o -i --exclude-standard
unignore = update-index --no-assume-unchanged
ll = log --pretty=format:"%C(green)%h\\ %ad%Cred%d\\ %Creset%s%C(yellow)\\ [%cn]" --decorate --date=local --numstat --all
lp = log -p
ls = log --pretty=format:"%C(green)%h\\ %ad%Cred%d\\ %Creset%s%C(yellow)\\ [%cn]" --decorate --date=local --all
oops = commit --amend --no-edit
parent = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #"
pl = pull --ff-only --prune --all
pop = reset HEAD^
pushf = push --force-with-lease
recommit = !git add -A && git commit --amend -C HEAD
remotes = remote -v
purge-local = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
sglog = log --date=\"short\" --format=\"%C(yellow)%h%Creset [%cN] %C(white)%ad%Creset %s\" --date=local --graph --decorate --all
rc = rebase --continue
tagcommit = rev-list -n 1
tags = !git tag -ln --sort=-v:refname | head -n 15
;tags = tag -ln --sort=v:refname
tip = log -n 1 --oneline --color
undo = reset --hard HEAD
unstage = reset HEAD
wdiff = diff --color-words
wipe = clean -fd
graph = log --all --decorate --oneline --graph
[gui]
pruneduringfetch = true
[push]
default = upstream
followTags = true
[pull]
ff = only
[fetch]
prune = true
writeCommitGraph = true
[difftool]
prompt = false
[mergetool]
prompt = false
keepbackup = false
keepTemporaries = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[interactive]
singleKey = true
diffFilter = delta --color-only
[protocol]
version = 2
[credential]
helper = store
[gc]
writeCommitGraph = true
[delta]
features = line-numbers decorations navigate
minus-emph-style = red reverse
minus-empty-line-marker-style = normal red ul
minus-non-emph-style = normal normal dim
minus-style = red normal
plus-emph-style = green reverse
plus-empty-line-marker-style = normal green ul
plus-non-emph-style = normal normal
plus-style = green normal
side-by-side = false
whitespace-error-style = red reverse
[delta "decorations"]
commit-decoration-style = bold yellow box
file-decoration-style = bold yellow box
file-style = bold yellow
; hunk-header-decoration-style = bold blue box
; hunk-header-decoration-style = none
; hunk-header-style = normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment