dotfiles/gitconfig

50 lines
1.1 KiB
Plaintext

[color]
diff = auto
status = auto
branch = auto
ui = true
[color "branch"]
current = green bold
local = yellow
remote = magenta
[color "diff"]
meta = yellow bold
frag = cyan
old = red
new = green
[color "status"]
added = green
untracked = cyan
changed = yellow
branch = magenta
[core]
preloadindex = true
autocrlf = input
safecrlf = true
eol = lf
pager = less -R
editor = vim
[merge]
conflictstyle = diff3
renameLimit = 10000000
[diff]
renameLimit = 10000000
[alias]
lg = log --color --pretty=format:'%Cblue%h%Creset - %C(magenta bold)%d%Creset %s %Cgreen(%ar) %C(bold red)<%an>%Creset' --abbrev-commit --no-merges
graph = log --color --pretty=format:'%Cblue%h%Creset - %C(magenta bold)%d%Creset %s %Cgreen(%ar) %C(bold red)<%an>%Creset' --abbrev-commit --graph
ma = checkout master
rb = rebase master
co = checkout
ci = commit
st = status --short --branch
[commit]
template = ~/.git-commit-template
[url "https://github.com/"]
insteadOf = gh:
[url "git@github.com:"]
pushInsteadOf = gh:
[url "https://github.com/nirenjan/"]
insteadOf = my:
[url "git@github.com:nirenjan/"]
pushInsteadOf = my: