Retab & add exec alias to gitconfig
This commit is contained in:
parent
461e9cfc41
commit
eba03e9e97
61
gitconfig
61
gitconfig
|
@ -1,47 +1,44 @@
|
||||||
[user]
|
[user]
|
||||||
name = Henrik Lissner
|
name = Henrik Lissner
|
||||||
email = henrik@lissner.net
|
email = henrik@lissner.net
|
||||||
[github]
|
[github]
|
||||||
user = hlissner
|
user = hlissner
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
whitespace = trailing-space
|
whitespace = trailing-space
|
||||||
editor = vim
|
editor = vim
|
||||||
pager = less -r
|
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\"
|
cmd = vimdiff \"$LOCAL\" \"$REMOTE\"
|
||||||
[difftool "ediff"]
|
[difftool "ediff"]
|
||||||
cmd = emacsclient -n --eval \"(ediff-files \\\"$LOCAL\\\" \\\"$REMOTE\\\")\"
|
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
|
tool = vimdiff
|
||||||
[push]
|
[push]
|
||||||
default = simple
|
default = simple
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
[alias]
|
[alias]
|
||||||
root = rev-parse --show-toplevel
|
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
|
||||||
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
|
st = status
|
||||||
co = checkout
|
co = checkout
|
||||||
ci = commit
|
ammend = commit --amend
|
||||||
di = diff
|
exec = "!exec "
|
||||||
dc = diff --cached
|
|
||||||
ammend = commit --amend
|
|
||||||
pu = push -u
|
|
||||||
|
|
||||||
# data analysis
|
# data analysis
|
||||||
authors = !git log --format="%aN" | sort -u
|
authors = !git log --format="%aN" | 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" | sort -u
|
emails = !git log --format="%aE" | sort -u
|
||||||
email-domains = !git log --format="%aE" | awk -F'@' '{print $2}' | sort -u
|
email-domains = !git log --format="%aE" | awk -F'@' '{print $2}' | sort -u
|
||||||
|
|
Loading…
Reference in a new issue