-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
139 lines (129 loc) · 3.6 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
[include]
path = ~/.gitconfig-private
[include]
path = ~/.gitconfig-local
[user]
name = Tammer Saleh
email = [email protected]
signingkey = 6EFD49B64C131F81
[alias]
aliases = !bash -c 'git config --get-regexp "alias.*" | cut -c 7-'
a = add -A
current-branch = rev-parse --abbrev-ref HEAD
last = log @{1}.. --decorate --reverse --stat -C --no-merges
bl = blame -wMC
ci = commit -v
append = commit --amend --no-edit
fixup = commit --fixup
br = branch -av --sort=-committerdate --format='%(HEAD) %(align:1,40)%(color:yellow)%(refname:short)%(color:reset)%(end) %(color:green)%(committerdate:relative)%(color:reset) - %(contents:subject) - %(authorname)'
my-branches = br --list '*tsaleh*'
latest-branches = for-each-ref --sort=-committerdate refs/heads --format='%(committerdate:short) %(refname:short)'
suir = submodule update --init --recursive --jobs=4
uncommit = reset --soft HEAD^
unstage = reset
files-in-commit = diff-tree --no-commit-id --name-only -r
modified = ls-files -m
staged = diff --name-only --cached
untracked = ls-files --others
files = ls-files -mo --exclude-standard
url = browse -u
[merge]
# tool = opendiff
# summary = true
conflictstyle = zdiff3
[diff]
wordRegex = [^[:space:]]
submodule = log
colorMoved = default
algorithm = histogram
[core]
excludesfile = ~/.gitglobalignore
whitespace = trailing-space,space-before-tab,tab-in-indent
# https://github.com/dandavison/delta
pager = delta
preloadindex = true
[status]
relativePaths = false
submodulesummary = true
[apply]
whitespace = nowarn
[rerere]
enabled = true
[gh]
autoUpdate = always
[hub]
protocol = https
[rebase]
autosquash = true
autostash = true
[gc]
auto = 256
[pull]
rebase = true
[hooks]
gitleaks = true
[interactive]
# https://github.com/dandavison/delta
diffFilter = delta --color-only
[filter "lfs"]
required = true
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
clean = git-lfs clean -- %f
[init]
defaultBranch = main
[delta]
features = decorations navigation
light = false
navigate = true
line-numbers = true
hyperlinks = true
[delta "decorations"]
file-style = bold green ul
hunk-header-style = omit
zero-style = darkslategray normal
# minus-style = normal pink
# plus-style = normal palegreen
# minus-emph-style = normal red
# plus-emph-style = normal green
# minus-non-emph-style = normal normal
# plus-non-emph-style = normal normal
minus-style = red strike
minus-emph-style = normal darkred strike
minus-non-emph-style = normal normal
plus-style = green bold
plus-emph-style = "#000000 green bold"
plus-non-emph-style = normal normal
[push]
# https://twitter.com/JI/status/1546948817462800384
autoSetupRemote = true
default = current
autoSetupMerge = always
[commit]
verbose = true
[credential]
helper = osxkeychain
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[transfer]
fsckobjects = true
[fetch]
fsckobjects = true
prune = true
prunetags = true
[receive]
fsckobjects = true
[submodule]
recurse = true
[branch]
sort = -committerdate
[gpg]
format = ssh
[log]
date = iso
[http]
postBuffer = 157286400