dotfiles/dot_gitconfig
2020-07-03 11:33:04 +02:00

36 lines
1.3 KiB
Plaintext

[user]
name = Morgan Wattiez
email = morgan.wattiez@collibra.com
[alias]
tags = log --no-walk --tags --pretty=\"%h %d %s\" --decorate=full
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status
contrib = ! git log --pretty=format:'%aN' | sort | uniq -c | sort -nr
whois = ! sh -c 'git log -i --pretty=\"format:%an <%ae>\" --author=\"\" | sort -u' -
di = diff -w --color-words=.
ac = ! git add . && git commit -v
unstage = reset HEAD
ru = clean -f
b = branch -vvar
follow = ! sh -c 'git checkout -t origin/$1' -
unfollow = ! git checkout master && git branch -d
sortdiff = ! sh -c 'git diff | grep ^[+-] | sort --key=1.2 | uniq -u -s1'
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
times = "!git log --author=\"$(git config user.name)\" \
--date=iso \
--format=\"%ad\" \
--date=\"format:%H\" \
| awk '{n=$1+0;if(H[n]++>max)max=H[n]}END{for(i=0;i<24;i++){printf\"%02d -%5d \",i,H[i];for(n=0;n<H[i]/max*50;n++){printf \"*\"}print\"\"}}'"
[help]
autocorrect = -1 # not more git psuh
[init]
templateDir = ~/.git-template
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
excludesfile = ~/.gitignore
[diff]
noprefix = true