Better global gitconfig
This commit is contained in:
parent
11bad47b05
commit
74dac52866
22
gitconfig
22
gitconfig
|
@ -6,15 +6,21 @@
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
whitespace = trailing-space
|
whitespace = trailing-space
|
||||||
|
editor = vim
|
||||||
|
pager = less -r
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
[difftool]
|
[difftool]
|
||||||
prompt = false
|
prompt = false
|
||||||
|
cmd = vimdiff \"$LOCAL\" \"$REMOTE\"
|
||||||
|
[difftool "ediff"]
|
||||||
|
cmd = emacsclient -n --eval \"(ediff-files \\\"$LOCAL\\\" \\\"$REMOTE\\\")\"
|
||||||
[merge]
|
[merge]
|
||||||
# Include summaries of merged commits in newly created merge commit messages
|
# Include summaries of merged commits in newly created merge commit messages
|
||||||
log = true
|
log = true
|
||||||
|
tool = vimdiff
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
[credential]
|
[credential]
|
||||||
|
@ -25,3 +31,19 @@
|
||||||
ls = ls-files
|
ls = ls-files
|
||||||
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
|
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
|
||||||
unadd = reset HEAD
|
unadd = reset HEAD
|
||||||
|
st = status
|
||||||
|
co = checkout
|
||||||
|
ci = commit
|
||||||
|
di = diff
|
||||||
|
dc = diff --cached
|
||||||
|
ammend = commit --amend
|
||||||
|
pu = push -u
|
||||||
|
|
||||||
|
# data analysis
|
||||||
|
authors = !git log --format="%aN"
|
||||||
|
unique-authors = !git authors | sort -u
|
||||||
|
ranked-authors = !git authors | sort | uniq -c | sort -n
|
||||||
|
emails = !git log --format="%aE"
|
||||||
|
email-domains = !git log --format="%aE" | awk -F'@' '{print $2}'
|
||||||
|
unique-email-domains = !git email-domains | sort -u
|
||||||
|
ranked-email-domains = !git email-domains | sort | uniq -c | sort -n
|
||||||
|
|
Loading…
Reference in a new issue