dotfiles/.gitconfig

46 lines
1.3 KiB
INI
Raw Normal View History

2024-10-18 01:46:03 -05:00
[user]
2024-10-30 09:49:54 -05:00
name = Joe Lillibridge
2024-10-18 01:46:03 -05:00
[gpg]
2024-10-30 09:49:54 -05:00
format = ssh
2024-10-18 01:46:03 -05:00
[gpg "ssh"]
2024-10-30 09:49:54 -05:00
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
2024-10-18 01:46:03 -05:00
[commit]
2024-10-30 09:49:54 -05:00
gpgsign = true
2024-10-18 01:46:03 -05:00
[alias]
2024-10-30 09:49:54 -05:00
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
st = status
tst = status
co = checkout
tco = checkout
ref = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format='%(refname:short)'
2024-11-23 09:46:43 -06:00
amend = commit --amend
untrack = rm --cached
unadd = restore --staged
softadd = add --intent-to-add
# init new git repo with empty initial commit
start = !git init && git commit --allow-empty -m \"Initial commit\"
# create a git repo including everything in this dir
initthis = !git init && git add . && git commit -m \"Bootstrap commit\"
slog = log --pretty=format:'%C(auto)%h %C(red)%as %C(blue)%aN%C(auto)%d%C(green) %s'
l = slog
# Logs commits matching current author
lome = "!git slog --author=$(git config --get user.name)"
# Switch to master/main/trunk; whatever the default branch is in the repo
swm = !git switch $(basename $(git symbolic-ref --short refs/remotes/origin/HEAD))
remoteurl = "remote get-url origin"
remotehttps = "!git remoteurl | sed -e 's/git@/https:\\/\\//'"
remotecopy = "!git remotehttps | pbcopy"
2024-10-18 01:46:03 -05:00
[include]
2024-10-30 09:49:54 -05:00
path = .gitconfig.local
2024-10-30 18:38:34 -05:00
[push]
2024-11-23 09:46:43 -06:00
autoSetupRemote = true