-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
98 lines (85 loc) · 2.52 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
[core]
editor = "subl -w"
excludesfile = ~/.gitignore_global
attributesfile = .gitattributes_global
ignorecase = false
mergeoptions = --no-edit
[user]
name = Thierry Deo
email = [email protected]
[tag]
sort = version:refname
gpgsign = true
[alias]
lol = log --graph --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m" --topo-order --decorate --boundary --branches
tree = log --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
# pcb = "!f() { git add -N . && git merge-base master HEAD | xargs git diff --name-only | xargs -d '\n' pre-commit run $@ --files; }; f"
modified-branch-files = "!f() { main_branch=`git symbolic-ref --short refs/remotes/origin/HEAD`; git diff --name-only $main_branch...HEAD; git diff --name-only HEAD; }; f"
dif = diff --ignore-space-change
rubocop-offenses = "!f() { git grep -IP --only-match 'rubocop:\\s*(disable|todo) .*' -- ':(exclude)**/archives/' | grep -Pzo '[A-Z][A-z]+/[A-Z][A-z]+' | tr '\\0' '\\n' | sort | uniq -c | sort; }; f"
eslint-offenses = "!f() { git grep -IP --only-match 'eslint-(disable[\\w-]*) .*' -- '*.js' '*.ts' '*.jsx' '*.tsx' '*.cjs' '*.mjs' | cut -d':' -f3 | cut -d' ' -f2- | sed 's/-- .*//g' | sed 's|\\*/||g' | grep -Pzo '[@A-z/-]+' | tr '\\0' '\\n' | sort | uniq -c | sort; }; f"
merge = merge --no-edit
cgrep = "!f() { git grep $1 -- ':!*.spec.tsx' ':!*.spec.ts' ':!*_spec.rb' ; }; f"
[push]
default = current
autoSetupRemote = true
[fetch]
prune = 1
pruneTags = 1
[help]
autocorrect = 1
[color]
branch = auto
diff = auto
status = auto
ui = true
# grep = always
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[include]
path = ~/.gitgpgsign
[includeIf "gitdir:~/workspace/"]
path = ~/workspace/.gitconfig
[includeIf "gitdir:~/reecall/"]
path = ~/reecall/.gitconfig
[includeIf "gitdir:~/compta/"]
path = ~/compta/.gitconfig
[http]
proxy =
[pull]
rebase = true
[rebase]
autoStash = true
[grep]
lineNumber = true
patternType = perl
fallbackToNoIndex = true
[diff]
algorithm = minimal
[diff "xls"]
binary = true
textconv = xls2txt
[checkout]
defaultRemote = origin
[color "grep"]
filename = magenta
lineNumber = green
[credential]
username = tdeo
[gc]
pruneExpire = 3 days ago
[safe]
directory =
[blame]
ignoreRevsFile = .git-blame-ignore-revs