-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
123 lines (123 loc) · 2.59 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
[user]
name = Vinícius Cristofari Barbosa
email = viniciusnypbarbosa@outlook.com
[includeIf "gitdir:**/speedchain/"]
path = .gitconfig_speedchain
[alias]
aliases = !git config --get-regexp alias | sed -re 's/alias\\.(\\S*)\\s(.*)$/\\1 = \\2/g'
ci = commit
cim = commit -m
co = checkout
sw = switch
st = status
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
a = add
au = add -u
ap = add -p
append = commit --amend --no-edit
push-with-lease = push --force-with-lease
rebase-with-hooks = rebase -x 'git reset --soft HEAD~1 && git commit -C HEAD@{1}'
review-local = "!git lg @{push}.."
reword = commit --amend
uncommit = reset --soft HEAD~1
untrack = rm --cache --
swm="!f() { git switch master 2>/dev/null || git switch main; }; f"
skip = update-index --skip-worktree
unskip = update-index --no-skip-worktree
[core]
pager = cat
excludesfile = ~/.gitignore_global
editor = code --wait
whitespace = -trailing-space
autocrlf = false
[diff]
mnemonicPrefix = true
renames = true
wordRegex = .
submodule = log
tool = vscode
algorithm = histogram
colorMoved = default
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[fetch]
recurseSubmodules = on-demand
fsckobjects = true
[grep]
break = true
heading = true
lineNumber = true
extendedRegexp = true
[log]
abbrevCommit = true
date = iso
[status]
submoduleSummary = true
showUntrackedFiles = all
[tag]
sort = version:refname
[pull]
rebase = true
[push]
autoSetupRemote = true
default = current
[merge]
conflictstyle = zdiff3
[init]
defaultBranch = main
[commit]
verbose = true
[help]
autocorrect = 10
[transfer]
fsckobjects = true
[receive]
fsckObjects = true
[branch]
sort = -committerdate
[gpg]
format = ssh
[credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/bin/gh auth git-credential
# Dracula Dark Theme
[color]
ui = auto
[color "branch"]
current = cyan bold reverse
local = white
plain =
remote = cyan
[color "diff"]
commit =
func = cyan
plain =
whitespace = magenta reverse
meta = white
frag = cyan bold reverse
old = red
new = green
[color "grep"]
context =
filename =
function =
linenumber = white
match =
selected =
separator =
[color "interactive"]
error =
header =
help =
prompt =
[color "status"]
added = green
changed = yellow
header =
localBranch =
nobranch =
remoteBranch = cyan bold
unmerged = magenta bold reverse
untracked = red
updated = green bold