[alias] age = !echo "First commit:" && git log --reverse --pretty=format:'\t\t%ar' | head -n 1 && echo 'Last commit:' && git log --pretty=format:'\t\t%ar' | head -n 1 authors = !"git log | grep ^Author: | sed 's/ <.*//; s/^Author: //' | sort | uniq -c | sort -nr" b = branch -v ba = !git branch -va --color | grep -v remotes/changes/ bl = !git branch -vv --color | grep -v '\\[.*\\/.*\\] ' br = !git branch -vr --color | grep -v 'origin/HEAD' burn = reset --hard HEAD^ changed-files = "!f(){ git show --name-only --pretty=format: $1 | sort | uniq | awk NF; }; f" ci = commit -v cia = commit -v -a ciaa = commit -v -a --amend cleanup = "!git branch --merged | egrep -v '[*]|main|master|development|latest|release' | xargs git branch -d" co = checkout compact = gc --prune --aggressive conflicted=diff --name-only --diff-filter=U continue = "-c core.editor=true rebase --continue" cp = cherry-pick cpsha = !git sha | pbcopy d = diff down = "!f() { git push -u ${1:-origin} $(git rev-parse --abbrev-ref HEAD); }; f" expire = reflog expire --expire=30.days refs/stash ff = merge --ff-only files = "!git ls-files --modified --cached --other --exclude-standard | sort | uniq" fixup = commit --amend --reuse-message=HEAD gone = "!f() { git branch -v | grep -v '*' | grep '\\[gone\\]' | awk '{print $1}' | xargs git branch -D; }; f" head = "!f() { git log -1; git diff HEAD^ HEAD; }; f" hunk = add -p ignored = "!git ls-files --others --exclude-standard" info = remote show origin latest = for-each-ref --count=10 --sort=-committerdate --format='%(committerdate:short) %(refname:short)' lc = log ORIG_HEAD.. --stat --no-merges lg = log --all --graph --decorate --oneline --simplify-by-decoration llog = log --date=local ls = "!git log --date=relative --pretty='format:%C(yellow)%h%C(reset) %G? %C(blue)%>(14,trunc)%ad %C(green)%<(19)%aN%C(reset)%s%C(red)% gD% D'" msg = !"git log -1 --oneline | cut -d ' ' -f 2-" noff = merge --no-ff zap = "!git reset --hard HEAD" nuke = "!git reset --hard HEAD && git clean -fd" pending = "!git --no-pager log --pretty=format:'%Cblue%ar%Creset\t%s' origin/master..master && echo" prl = pull-request-last-commit punch = push --force rc = commit --amend -C HEAD recommit = commit --amend -C HEAD review = !git-review rup = remote update -p sha = log -1 --pretty=format:%H sign = "!f() { git rebase \"${1:-$((git branch | egrep 'main|master|development|latest|release' || echo 'master') | sed 's|* |origin/|' | awk '{print $1}')}\" --exec 'git commit --amend --no-edit -n -S'; }; f" st = status -sb track = "!f(){ branch=$(git name-rev --name-only HEAD); cmd=\"git branch --set-upstream-to ${1:-origin}/${2:-$branch} $branch\"; echo $cmd; $cmd; }; f" uncommit = reset --soft HEAD^ up = "!git fetch && git merge --ff-only" wd = diff --word-diff wipe = "!git remote | sed -E \"/^(origin|upstream|indirect)$/d\" | xargs -L 1 git remote rm" [branch] autosetupmerge = true [color] branch = auto diff = auto status = auto ui = auto [core] attributesfile = ~/.gitattributes excludesfile = ~/.gitignore legacyheaders = false pager = delta ; pager = delta --features "$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo dark-mode || echo light-mode)" [push] default = simple [repack] usedeltabaseoffset = true [rerere] enabled = true [user] name = André Arko email = andre@arko.net [filter "lfs"] required = true clean = git-lfs clean -- %f smudge = git-lfs smudge -- %f process = git-lfs filter-process [diff] algorithm = histogram colorMoved = default [github] user = indirect [gpg] program = bpb [commit] gpgSign = true [tag] forceSignAnnotated = true [merge] conflictstyle = zdiff3 [rebase] autoStash = true [protocol] version = 2 [interactive] diffFilter = delta --color-only --features "$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo dark-mode || echo light-mode)" [pull] rebase = true [diff "rspec"] xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario|background)[ \t].*)$" [diff "plist"] textconv = plutil -convert xml1 -o - [diff "age"] textconv = chezmoi decrypt [init] defaultBranch = main [delta "light-mode"] light = true syntax-theme = GitHub [delta "dark-mode"] light = false syntax-theme = Visual Studio Dark+ [delta] navigate = true [maintenance] repo = /Users/andre/.zsh/znap/fzf-zsh-plugin repo = /Users/andre/.zsh/znap/mac-zsh-completions repo = /Users/andre/.zsh/znap/powerlevel10k repo = /Users/andre/.zsh/znap/zsh-autosuggestions repo = /Users/andre/.zsh/znap/zsh-history-substring-search repo = /Users/andre/.zsh/znap/zsh-syntax-highlighting repo = /Users/andre/.zsh/znap/zsh-vim-mode repo = /Users/andre/.zsh/znap/zsh-you-should-use [credential "https://github.com"] helper = helper = !/opt/homebrew/bin/gh auth git-credential [credential "https://gist.github.com"] helper = helper = !/opt/homebrew/bin/gh auth git-credential [http] postBuffer = 157286400 [ghq] root = ~/src