1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/git/config

86 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2016-03-31 02:03:55 +00:00
[user]
name = Joe Groocock
2018-03-29 09:15:16 +00:00
email = me@frebib.net
2016-04-02 18:45:25 +00:00
signingkey = CFBB6A86
2018-03-29 09:15:16 +00:00
[core]
autocrlf = input
2018-11-08 22:26:44 +00:00
excludesfile = /home/frebib/.config/git/gitignore
pager = diff-highlight | $PAGER
[init]
defaultBranch = master
[interactive]
diffFilter = diff-highlight
[commit]
gpgsign = true
[fetch]
prune = true
2018-03-29 09:15:16 +00:00
[push]
default = upstream
[pull]
rebase = true
prune = true
[merge]
ff = only
2018-03-29 09:15:16 +00:00
[rebase]
autoStash = true
[remote "origin"]
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
[remote "upstream"]
fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
[log]
date = iso8601-local
2018-03-29 09:15:16 +00:00
[format]
pretty = format:%h %Cblue%ad%Creset %ae %Cgreen%s%Creset
[alias]
2017-11-15 23:49:09 +00:00
verbs = !git log --pretty=format:'%s' | cut -d \" \" -f 1 | sort | uniq -c | sort -nr
pushall = !git remote | xargs -L1 git push
2018-03-29 09:15:16 +00:00
count = !echo $(pwd) && git rev-list HEAD --count
unpushed = !git log --oneline @{u}..HEAD
leaders = !git shortlog -s -n --all --no-merges
defbranch = "!defbranch() { \
r=\"${1:-origin}\"; \
{ \
git symbolic-ref \"refs/remotes/$r/HEAD\" || { \
git remote set-head \"$r\" -a >&2 && \
git symbolic-ref \"refs/remotes/$r/HEAD\"; \
}; \
} 2>/dev/null \
| sed \"s@^refs/remotes/$r/@@\"; \
}; defbranch"
cleanmerged = "!cleanmerged() { \
r=\"${1:-origin}\"; \
b=\"${2:-$(git defbranch \"$r\")}\"; \
git branch --merged \"$r/$b\" | \
grep -ve \"^\\\\*\" -e \"^. $b$\" | \
xargs -r git branch -d; \
}; cleanmerged"
2016-04-02 18:45:25 +00:00
[advice]
statusHints = false
pushUpdateRejected = false
detachedHead = false
[sendemail]
2018-03-29 09:15:16 +00:00
from = Joe Groocock <me@frebib.net>
smtpserver = smtp.zoho.com
smtpuser = me@frebib.net
smtpencryption = ssl
smtpserverport = 465
suppresscc = self
[diff]
algorithm = patience
[color]
ui = true
[color "diff"]
meta = cyan
frag = magenta
commit = yellow
old = red
new = green
whitespace = red 88 reverse
[color "diff-highlight"]
oldNormal = red
oldHighlight = red 88
newNormal = green
newHighlight = green 22
# vim: noet