dotfiles/.gitconfig

39 lines
1.2 KiB
INI
Raw Permalink Normal View History

2017-05-27 03:23:44 +00:00
[core]
pager = less -q
[color]
ui = auto
2018-05-28 23:32:43 +00:00
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[url "ssh://git@bitbucket.org/"]
insteadOf = https://bitbucket.org/
[url "ssh://git@gitlab.com/"]
insteadOf = https://gitlab.com
2017-05-27 03:23:44 +00:00
[alias]
2018-05-28 23:32:43 +00:00
ls = log -n 16 --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate
lo = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate
2017-05-27 03:23:44 +00:00
ll = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%ad" --decorate --date=short --stat
tree = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate --graph
graph = log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short
2018-05-28 23:32:43 +00:00
graph2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
2017-05-27 03:23:44 +00:00
unstage = reset HEAD
st = status
ch = checkout
ci = commit
br = branch
[help]
autocorrect = 1
[diff]
tool = vimdiff
algorithm = histogram
compactionHeuristic = true
[merge]
tool = vimdiff