generated from anishathalye/dotfiles_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
111 lines (80 loc) · 1.93 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
[alias]
ali = config --get-regexp alias
a = add
ap = add --patch
bl = blame
bs = bisect
bsg = bisect good
bsb = bisect bad
br = branch -vv
brd = branch -d
ci = commit -v
cim = commit -m
amend = commit -v --amend
amendn = commit --amend --no-edit
cfg = config
cleanall = clean -fdx
co = checkout
cob = checkout -b
d = diff # compares working directory with staging area
dc = diff --cached # compares staging area with previous snapshot
ds = diff --stat
dcs = diff --cached --stat
logg = log --all --decorate --graph --oneline
mg = merge
rb = rebase
rbi = rebase -i
rbc = rebase --continue
rs = reset #default to --mixed
rss = reset --soft
rsh = reset --hard
dis = restore
disp = restore -p
us = restore --staged
usp = restore --staged -p
rem = remote
root = rev-parse --show-toplevel
rv = revert
sm = submodule
smpush = push --recurse-submodules=on-demand
smpull = pull --recurse-submodules
smd = submodule foreach 'git diff'
smdc = submodule foreach 'git diff --cached'
update-submodules = submodule update --init --recursive # note the lack of --remote
sw = switch
swc = switch -c
s = status -sb
sta = stash
stap = stash --patch
stal = stash list
staa = stash apply
stad = stash drop
stab = stash branch
[user]
useConfigOnly = true # don't guess name and email, always ask
name = Yutai Zhou
email = [email protected]
[core]
editor=vim
excludesfile = $HOME/.gitignore_global
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
dark = true
# side-by-side = true # has line number on by default
line-numbers = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main
[include]
path = $HOME/.gitconfig_local