dotfiles/git/.gitconfig

24 lines
571 B
INI

[user]
name = Jonas Müller
email = j.mueller@nexus.local
[core]
editor = nvim
autocrlf = input
excludesfile = ~/.dotfiles/git/.gitignore_global
[push]
default = current
autoSetupRemote = true
[pull]
rebase = true
[rebase]
autoStash = true
[diff]
tool = nvimdiff
[alias]
st = status
co = checkout
br = branch
lg = log --oneline --graph --decorate --all
undo = reset HEAD~1 --mixed
# I don't know why this works but it does
fixup = "!f() { git commit --fixup $1 && git rebase -i --autosquash $1~1; }; f"