Last active
December 20, 2022 19:28
-
-
Save Harwood/41589212c4daff9b554bfb46a583fa8f to your computer and use it in GitHub Desktop.
Git config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | |
cleanslate = !git checkout -- . && git checkout master && git branch | grep -v "^\\*" | xargs git branch -D && git clean --quiet --force -d -x && git fetch --all --multiple --prune --prune-tags --tags && git pull | |
prep = "!f() { git clone $@ && cd $(basename $_ .git) && ln -s ~/.pre-commit/pre-commit-config.yaml ./.pre-commit-config.yaml && pre-commit install --install-hooks && pre-commit autoupdate ;}; f" | |
loc = !git ls-files | xargs -n1 git blame --line-porcelain | sed -n 's/^author //p' | sort -f | uniq -ic | sort -nr | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
spellcheck = !git ls-tree --full-tree -r HEAD | awk '{ print $4 }' | xargs -n1 sh -c 'aspell check "$@" < /dev/tty' aspell | |
untracked = ls-files -o --exclude-standard | |
sit-issue = "!f() { $(git root)/.sit/modules/issue-tracking/cli/sit-issue ;}; f" | |
sit-mr = "!f() { $(git root)/.sit/modules/issue-tracking/cli/sit-mr ;}; f" | |
sit-mr-compare = "!f() { $(git root)/.sit/modules/issue-tracking/cli/sit-mr-compare ;}; f" | |
sit-mr-merge = "!f() { $(git root)/.sit/modules/issue-tracking/cli/sit-mr-merge ;}; f" | |
[color] | |
diff = auto | |
branch = auto | |
interactive = auto | |
status = auto | |
ui = true | |
[color "diff"] | |
commit = 227 bold | |
frag = magenta bold | |
meta = 227 | |
new = green bold | |
old = red bold | |
whitespace = red reverse | |
[color "diff-highlight"] | |
newHighlight = green bold 22 | |
newNormal = green bold | |
oldHighlight = red bold 52 | |
oldNormal = red bold | |
[commit] | |
gpgSign = true | |
template = /Users/ch044229/.stCommitMsg | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore_global | |
pager = diff-so-fancy | less --tabs=4 -RFX | |
[diff] | |
tool = vimdiff | |
[difftool] | |
prompt = false | |
[difftool.vimdiff] | |
cmd = vimdiff -u NONE $LOCAL $REMOTE | |
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
process = git-lfs filter-process | |
required = true | |
smudge = git-lfs smudge -- %f | |
[gpg] | |
program = /usr/local/bin/krgpg | |
[hub] | |
host = github.com | |
protocol = ssh | |
[merge] | |
tool = vimdiff | |
[protocol] | |
version = 2 | |
[pull] | |
rebase = true | |
[push] | |
default = simple | |
signed = true | |
[tag] | |
forceSignAnnotated = true | |
[user] | |
name = Harwood | |
email = Harwood@users.noreply.github.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment