dotfiles/.gitconfig

31 lines
576 B
INI

[color]
ui = auto
[user]
email = andrei.stoica.365@gmail.com
name = Andrei Stoica
[alias]
a = add
s = status
c = commit
b = branch
co = checkout
d = diff
dc = diff -cached
lol = log --decorate --pretty=oneline --abbrev-commit
lg = "log --pretty=format:'%C(auto) %h,%C(green) \"%s\"%Creset, %aN,%C(blue) %cD'"
[core]
editor = nvim
autocrlf = input
[init]
defaultBranch = main
[merge]
tool = nvim
[mergetool]
keepBackup = false
[mergetool "nvim"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[fetch]
all = true