Clean up + add aliases to gitconfig
This commit is contained in:
parent
2965548549
commit
ac88bcc7ab
29
gitconfig
29
gitconfig
|
@ -3,37 +3,24 @@
|
||||||
email = henrik@lissner.net
|
email = henrik@lissner.net
|
||||||
[github]
|
[github]
|
||||||
user = hlissner
|
user = hlissner
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
quotepath = false
|
|
||||||
whitespace = trailing-space
|
whitespace = trailing-space
|
||||||
|
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = true
|
||||||
|
|
||||||
[diff]
|
[diff]
|
||||||
tool = gvimdiff
|
tool = vimdiff
|
||||||
|
|
||||||
[difftool]
|
[difftool]
|
||||||
prompt = false
|
prompt = false
|
||||||
|
|
||||||
[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
|
||||||
|
|
||||||
[push]
|
[push]
|
||||||
default = matching
|
default = simple
|
||||||
|
|
||||||
[url "ssh://git@github.com"]
|
|
||||||
insteadOf = "gh:"
|
|
||||||
[url "ssh://git@github.com/hlissner"]
|
|
||||||
insteadOf = "gh:~"
|
|
||||||
|
|
||||||
[url "ssh://git@bitbucket.org"]
|
|
||||||
insteadOf = "bb:"
|
|
||||||
[url "ssh://git@bitbucket.org/hlissner"]
|
|
||||||
insteadOf = "bb:~"
|
|
||||||
|
|
||||||
[credential]
|
[credential]
|
||||||
helper = osxkeychain
|
helper = osxkeychain
|
||||||
|
[alias]
|
||||||
|
undo-commit = reset --soft "HEAD^"
|
||||||
|
amend = commit --amend
|
||||||
|
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 --
|
||||||
|
|
Loading…
Reference in a new issue