dotfiles/.gitconfig

71 lines
1.9 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-12-02 20:28:36 +00:00
#email = joe@lillibridge.email
#signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILoyiVVnKMnTDgtals13aXoBarPzwyRlKMhVugOj15ap
2024-10-18 01:46:03 -05:00
2024-12-03 08:09:00 -06:00
[push]
autoSetupRemote = true
[init]
defaultBranch = main
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
[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
2024-11-23 09:59:47 -06:00
wdiff = diff -w --word-diff=color --ignore-space-at-eol
# Diff of last commit
dlc = diff --cached HEAD^
# list all defined aliases
aliases = config --get-regexp alias
# Find very first commit
first = rev-list --max-parents=0 HEAD
# what would be merged
incoming = log HEAD..@{upstream}
# what would be pushed
outgoing = log @{upstream}..HEAD
outgoing = log @{u}..
# List all commits (on this branch) made by me
mycommits = log --author=\".*[Jj]an\\s*[Kk]rag.*\"
structure = log --oneline --simplify-by-decoration --graph --all
2024-11-23 09:46:43 -06:00
# 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