-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
30 lines (30 loc) · 990 Bytes
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[user]
email = [email protected]
name = Lukas Tillmann
[core]
editor = nvim
[alias]
comit = commit
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
last = log -1 HEAD --stat
s = status
co = checkout
pullr = pull --rebase
# prettier stash list
st = stash list --pretty=format:\"%C(red)%h%C(reset) - %C(dim yellow)(%C(bold magenta)%gd%C(dim yellow))%C(reset) %<(70,trunc)%s %C(green)(%ci, %cr) %C(bold blue)<%an>%C(reset)\"
# https://stackoverflow.com/a/18317425/5888924
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored = !git ls-files -v | grep "^[[:lower:]]"
dev = checkout develop
main = checkout main
[merge]
tool = vscode
[diff]
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[mergetool "vscode"]
cmd = code --wait --merge $MERGED
[init]
defaultBranch = main