-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
83 lines (78 loc) · 1.89 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[user]
name = Magnus Bellstrand
email = bellstrand@gmail.com
signingkey = 409A82963F955D14
[commit]
gpgsign = true
[pull]
rebase = true
[push]
default = current
followTags = true
[rerere]
enabled = true
[merge]
log = true
[branch]
autosetuprebase = always
sort = -committerdate
[core]
# pager = cat
editor = vim
quotepath = false
whitespace = fix,-indent-with-non-tab,space-before-tab,trailing-space,cr-at-eol
untrackedCache = true
[init]
defaultBranch = main
[diff]
mnemonicPrefix = true
renames = true
wordRegex = .
[tag]
sort = version:refname
[versionsort]
prereleaseSuffix = -pre
prereleaseSuffix = .pre
prereleaseSuffix = -beta
prereleaseSuffix = .beta
prereleaseSuffix = -rc
prereleaseSuffix = .rc
[apply]
whitespace = fix
[color]
ui = auto
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red reverse
new = green reverse
whitespace = white reverse
[color "status"]
added = green
changed = yellow
untracked = red
branch = magenta
[alias]
ci = commit
co = checkout
st = status -s
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
amend = commit --amend --reuse-message=HEAD
oops = commit --amend --no-edit
push-with-lease = push --force-with-lease
review-local = "!git lg @{push}.."
reword = commit --amend
uncommit = reset --soft HEAD~1
contributors = shortlog --summary --numbered
lg = log --graph --pretty=format:'%Cred%h%Creset - %C(yellow)%cn:%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
tg = tag --sort=committerdate
spp = !git stash && git pull --rebase && git stash pop
sweep = !git fetch -p && git branch -vv | grep origin | grep gone | awk '{print $1}' | xargs -L 1 git branch -D