dotfiles/.gitconfig

30 lines
896 B
INI
Raw Normal View History

2020-07-13 09:45:25 +02:00
[user]
2021-08-30 22:25:10 +02:00
name = Michael Grote
email = michael.grote@posteo.de
2020-10-12 18:56:12 +02:00
[credential]
2021-08-30 22:25:10 +02:00
helper = store
2021-05-01 17:00:18 +02:00
[alias]
2021-08-30 22:25:10 +02:00
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
2021-08-31 12:37:32 +02:00
c = checkout
2021-08-24 08:45:21 +02:00
d = diff
ds = diff --staged
2021-08-30 22:25:10 +02:00
rc = rebase --continue
remote = remote -v
stagep = stage -p
last = log -1 HEAD --stat
2021-10-20 20:09:46 +02:00
# Delete all local branches but master and the current one, only if they are fully merged with master.
dbra = "!f(){\
git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\
}; f"
# Delete all local branches but master and the current one.
dbraf = "!f(){\
git branch | grep -v "master" | grep -v ^* | xargs git branch -D;\
}; f"
2021-08-12 13:22:23 +02:00
[core]
2021-08-30 22:25:10 +02:00
editor = vim
[help]
autocorrect = 20 # https://opensource.com/article/20/11/git-aliases