Redo git aliases
This commit is contained in:
parent
87a4c7e3c6
commit
fe23499956
10
gitconfig
10
gitconfig
|
@ -26,6 +26,7 @@
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
[alias]
|
[alias]
|
||||||
|
root = rev-parse --show-toplevel
|
||||||
undo-commit = reset --soft "HEAD^"
|
undo-commit = reset --soft "HEAD^"
|
||||||
amend = commit --amend
|
amend = commit --amend
|
||||||
ls = ls-files
|
ls = ls-files
|
||||||
|
@ -40,10 +41,7 @@
|
||||||
pu = push -u
|
pu = push -u
|
||||||
|
|
||||||
# data analysis
|
# data analysis
|
||||||
authors = !git log --format="%aN"
|
authors = !git log --format="%aN" | sort -u
|
||||||
unique-authors = !git authors | sort -u
|
|
||||||
ranked-authors = !git authors | sort | uniq -c | sort -n
|
ranked-authors = !git authors | sort | uniq -c | sort -n
|
||||||
emails = !git log --format="%aE"
|
emails = !git log --format="%aE" | sort -u
|
||||||
email-domains = !git log --format="%aE" | awk -F'@' '{print $2}'
|
email-domains = !git log --format="%aE" | awk -F'@' '{print $2}' | sort -u
|
||||||
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