-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
153 lines (118 loc) · 3.22 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[user]
name = Augusto Elesbão
email = "aelesbao@users.noreply.github.com"
signingkey = FFAE83F3
useConfigOnly = true
[core]
excludesfile = ~/.gitignore
attributesfile = ~/.gitattributes
whitespace = trailing-space,space-before-tab
pager = delta || less --tabs=4 -RFX
[url "https://github.com/"]
insteadOf = "git://github.com/"
insteadOf = "git@github.com:"
insteadOf = "github:"
insteadOf = "gh:"
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "git://github.com/"
pushInsteadOf = "github:"
pushInsteadOf = "gh:"
[url "https://github.com/aelesbao/"]
insteadOf = "aelesbao:"
[url "git@github.com:aelesbao/"]
pushInsteadOf = "aelesbao:"
[url "https://aur.archlinux.org/"]
insteadOf = "aur:"
[url "aur@aur.archlinux.org:"]
pushInsteadOf = "aur:"
[url "git@heroku.com:"]
insteadOf = "heroku:"
[url "git@bitbucket.org:"]
insteadOf = "bitbucket:"
[url "https://gitlab.com/"]
insteadOf = "gitlab:"
[url "git@gitlab.com:"]
pushInsteadOf = "https://gitlab.com/"
[branch]
autoSetupRebase = always
[pull]
rebase = true
[push]
default = upstream
[commit]
verbose = true
[gpg]
format = openpgp
[alias]
st = status
s = status -s -b
ci = commit
cis = !git ci -S
amend = !git cis --amend -C HEAD
fixup = !git cis --fixup=$(git rev-parse --verify HEAD)
co = checkout
w = whatchanged
wiff = diff --color-words --word-diff
ediff = diff --ext-diff
search = log -S
l = log --graph --decorate --date=local
lol = !git l --oneline --abbrev-commit
lola = !git lol --all
lstat = !git l --patch-with-stat --summary
lm = !git lol "$(git branch -rl '*/HEAD' | awk -F/ '{print $NF}')"..HEAD
dm = !git diff --no-ext-diff "$(git branch -rl '*/HEAD' | awk -F/ '{print $NF}')"..HEAD
pull = pull --ff-only
plr = pull --rebase --prune
head = rev-parse --short --verify HEAD
news = log -p HEAD@{1}..HEAD@{0}
publish = !git push --set-upstream origin "$(git rev-parse --abbrev-ref HEAD)"
clean = clean -i
clear = clean -i
current-branch = !git symbolic-ref -q --short HEAD || git describe --tags --exact-match
delete-remote-branch = !git push origin :"$(git rev-parse --abbrev-ref HEAD)"
[init]
defaultBranch = main
[git-extras]
default-branch = main
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[rerere]
enabled = true
[rebase]
autosquash = true
[apply]
whitespace = warn
[format]
pretty = format:%C(bold yellow)%h%C(reset) %s %C(red)%d%C(reset) %n%C(magenta)%ad%C(reset) %n%C(blue)%an%C(reset)%n
[color]
ui = true
pager = true
[diff]
tool = nvimdiff1
;renames = copies
colorMoved = default
[difftool "vscode"]
cmd = code -n --wait --diff $LOCAL $REMOTE
[merge]
tool = nvimdiff2
conflictstyle = zdiff3
[mergetool]
keepBackup = false
[mergetool "vscode"]
cmd = code -n --wait -m $REMOTE $LOCAL $BASE $MERGED
keepBackup = false
[interactive]
diffFilter = delta --color-only || less --tabs=4 -RFX
[github]
user = aelesbao
[delta]
navigate = true
line-numbers = true
side-by-side = true
hyperlinks = true
[include]
path = ~/.config/delta/theme.gitconfig
[include]
path = ~/.gitconfig.local