rc/gitconfig

39 lines
970 B
Text
Raw Normal View History

2015-12-12 21:45:03 +00:00
[core]
excludesfile = ~/.gitignore_global
[include]
path = ~/.git_user
[master]
2015-11-24 18:04:50 +00:00
autosetuprebase = always
[color]
2015-11-24 18:04:50 +00:00
ui = auto
[push]
default = current
2016-09-28 14:29:54 +00:00
[merge]
tool = vimdiff
conflictstyle = diff3
[alias]
# Basics
st = status -s
cl = clone
cm = commit -m
cma = commit -am
ck = checkout
br = branch
gr = grep -I
# Tweak defaults
bra = branch -ra
# List aliases
la = "!git config -l | grep alias | cut -c 7-"
# Pretty branch graph
lg = log --oneline --abbrev-commit --all --graph --decorate --color
2018-05-17 17:28:27 +00:00
# Graph with additional info (author, date)
lga = log --graph --abbrev-commit --decorate --format=format:'%C(yellow)%h%C(reset) %C(bold red)%d%C(reset) %C(blue)[%an]%C(reset) %C(green)(%ar)%C(reset) - %C(white)%s%C(reset)' --all
# Same but also list modified files
lf = log --oneline --name-status --all --graph --decorate --color
2018-05-17 17:28:27 +00:00
# pull rebase
prb = pull --rebase