-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
162 lines (129 loc) · 3.37 KB
/
.gitconfig
File metadata and controls
162 lines (129 loc) · 3.37 KB
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
154
155
156
157
158
159
160
161
162
# A good list of alises http://haacked.com/archive/2014/07/28/github-flow-aliases/
[color "branch"]
current = green bold
local = green
remote = yellow
[color "diff"]
frag = magenta
meta = yellow
new = green
old = red
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "status"]
added = green reverse
changed = yellow reverse
untracked = red reverse
# Git mergetool
[merge]
tool = vimdiff
conflictstyle = zdiff3
[mergetool]
prompt = false
keepBackup = false
[core]
editor = /opt/homebrew/bin/nvim
abbrev = 12
attributesfile = ~/.gitattributes
excludesfile = ~/.gitignore
autocrlf = input
mergeoptions = --no-edit
ignorecase = false
preloadIndex = true
fscache = true
ignoreStat = false
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
dark = true # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
line-numbers = true
side-by-side = true
hyperlinks = true
hyperlinks-file-link-format = "file-line://{path}:{line}"
[diff]
colorMoved = plain
algorithm = histogram
renames = true
mnemonicPrefix = true
cmd = code --wait --diff $LOCAL $REMOTE
tool = vimdiff
submodule = log
[diff "bin"]
# Use `hexdump` to diff binary files
textconv = hexdump -v -C
[pretty]
custom = "%C(magenta)%h%C(red)%d %C(yellow)%ar %C(green)%s %C(yellow)(%an)"
# │ │ │ │ └─ author name
# │ │ │ └─ message
# │ │ └─ date (relative)
# │ └─ decorations (branch, heads or tags)
# └─ hash (abbreviated)
[help]
# Correct typos
autocorrect = 1
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
pushInsteadOf = "https://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
# Push easily http://stackoverflow.com/a/23918418/89484
[push]
# Make `git push` automatically push relevant
# annotated tags when pushing branches out
followTags = true
default = simple
autoSetupRemote = true
# Use separate file for username / github token / etc
[include]
path = ~/.gitconfig.local
[fetch]
prune = true
pruneTags = true
all = true
[user]
email = rahul.rrixe@gmail.com
name = Rahul Ranjan
[pull]
rebase = true
[branch]
autosetupmerge = always
autosetuprebase = always
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[commit]
verbose = true
[rerere]
enabled = true
autoupdate = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[apply]
whitespace = fix
[log]
date = iso
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
spull = !git pull && git submodule sync --recursive && git submodule update --init --recursive
spush = git push --recurse-submodules=on-demand
sinit = git submodule update --init --force --recursive --verbose
[status]
submoduleSummary = true