dotfiles/.gitconfig
2021-10-26 12:15:48 +02:00

22 lines
699 B
INI

[user]
name = Michael Grote
email = michael.grote@posteo.de
[credential]
helper = store
[alias]
logs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
cm = commit -m
c = checkout
d = diff
remote = remote -v
sp = stage -p
last = log -1 HEAD --stat
# Delete all local branches but master and the current one, only if they are fully merged with master.
delbranches = "!f(){\
- git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\
}; f"
dellast = reset HEAD^1
[core]
editor = vim
[help]
autocorrect = 20 # https://opensource.com/article/20/11/git-aliases