1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

114 lines
2.4 KiB

[user]
email = zah@andrewzah.com
name = Andrew Zah
#signingkey = 56E753CB2EDAC18F9CFE2FD523A65DACB7CAA68B
[core]
editor = nvim
excludesfile = ~/.global_gitignore
[alias]
aliases = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\ \t => \\2/' | sort
# git add --all
aa = add --all
# delete branch
brdel = branch -D
# most modified files
churn = !git log --all -M -C --name-only --format='format:' "$@" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print "count,file"} {print $1 "," $2}'
# save repo as tarball
export = archive -o latest.tar.gz -9 --prefix=latest/
# list of commit sha-1s
l = "!f() { git log $* | grep '^commit ' | cut -f 2 -d ' '; }; f"
# list all tags
tags = tag -l
# checks that local refs are up to date before overwriting
please = push --force-with-lease
# see recent branches worked on
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"
# see overview of commits
overview = log --all --oneline --no-merges
# recap your own commits on a project
recap = log --all --pretty=format:'%h %ad %s' --no-merges --author=<zah@andrewzah.com> --date=short
# amend commit
commend = commit --amend --no-edit
# merge no fast forward
merc = merge --no-ff
# brief status
st = status --short --branch
# stash only unstaged changes to tracked files
stsh = stash --keep-index
# stash any changes to tracked files
staash = stash --include-untracked
# stash ignored, untracked, and tracked files
staaash = stash --all
# initialize empty repo and commit
it = !git init && git commit -m \"root\" --allow-empty }
[diff]
indentHeuristic = on
[log]
date = relative
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = red
#[pager]
# diff = delta
# log = delta
# reflog = delta
# show = delta
[interactive]
diffFilter = delta --color-only
[delta]
features = side-by-side line-numbers-decorations
#minus-style = "syntax #4d0000"
#plus-style = "syntax #19833D"
syntax-theme = zenburn
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
[commit]
#gpgsign = true
[init]
defaultBranch = master