46 lines
1.3 KiB
INI
46 lines
1.3 KiB
INI
[user]
|
|
name = Joe Lillibridge
|
|
|
|
[gpg]
|
|
format = ssh
|
|
|
|
[gpg "ssh"]
|
|
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
|
|
|
|
[commit]
|
|
gpgsign = true
|
|
|
|
[alias]
|
|
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)'
|
|
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"
|
|
|
|
[include]
|
|
path = .gitconfig.local
|
|
[push]
|
|
autoSetupRemote = true
|