-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
66 lines (60 loc) · 1.15 KB
/
gitconfig
File metadata and controls
66 lines (60 loc) · 1.15 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
[user]
name = Mitul Shah
email = 45.mitul@gmail.com
[core]
editor = nvim
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[commit]
verbose = true
[color]
ui = auto
[color "branch"]
current = yellow
local = green
remote = cyan
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
whitespace = red reverse
[color "status"]
added = green
changed = yellow
untracked = red
[push]
default = current
[merge]
tool = vimdiff
# Suppress the git diff --stat after both git merge and git pull.
# https://stackoverflow.com/a/54865245
stat = false
[diff]
[alias]
b = branch
s = status
d = diff
dc = diff --cached
pr = pull --rebase
r = rebase
ps = push
fps = push -f
ups = !git push --set-upstream origin $(git branch)
a = add
c = commit
ca = commit -a
cam = commit -am
st = stash
sta = stash apply
co = checkout
cob = checkout -b
[init]
defaultBranch = main
[fetch]
# Auto-prune local branches that are tracking remote branches that don't exist anymore.
# https://stackoverflow.com/a/44129766
prune = true