dotfiles/.gitconfig
Brian Pooe 6861ff1e16 feat: add local override hooks for zsh and git
~/.zshrc.local and ~/.gitconfig.local hold machine-specific settings
(secrets, work identity, installer PATH additions) so third-party
installers stop dirtying the tracked configs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 21:16:17 +02:00

61 lines
1.4 KiB
INI

[user]
name = Brian Pooe
email = brian.method@gmail.com
[color]
ui = auto
branch = auto
status = auto
diff = auto
[alias]
st = status
ba = branch -va
b = branch
co = checkout
cdiff = diff --cached
df = diff
ol = log --oneline
lg = log -p
hlog = !git log --pretty=format:\"%h - %an, %ar : %s\" --graph
# all commits that aren't merges on all branches
all = !git log --pretty=oneline --abbrev-commit --all --no-merges
# all commits today for only me
today = !git all --since='12am' --author=brian.method@gmail.com
pom = push origin main
pos = push origin staging
pod = push origin develop
pou = push origin uat
ruo = remote update origin
cma = commit --amend
cmna = commit -n --amend
del = branch -D
cm = commit -m
pf = push --force-with-lease origin
po = push origin
rv = remote -v
rao = remote add origin
suo = remote set-url origin
stash-s = stash save --keep-index --include-untracked
stash-a = stash apply
undo-commit = reset --soft HEAD~1
stash-unapply = !git stash show -p | git apply -R
del-local = "!f() { git branch | grep -v 'main' | xargs git branch -d; }; f"
del-remote = remote prune
latest-tag = tag -l --sort=-version:refname
back = !f() { git reset --soft HEAD~$1; }; f
[push]
default = simple
[core]
editor=nvim
pager = less -x4
# Machine-specific overrides (e.g. a work identity via includeIf).
# Git silently skips this if the file doesn't exist. Keep last so
# local settings win.
[include]
path = ~/.gitconfig.local