-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathgitconfig
125 lines (115 loc) · 3.39 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
[core]
editor = vim
excludesFile = ~/dotfiles/gitignore
pager = delta
[user]
name = Evan Chen
email = [email protected]
signingkey = 2911981B5D39118D80D782779474E9565D64C443
[credential]
helper = /usr/lib/git-core/git-credential-libsecret
[init]
defaultBranch = main
# Colors
[color]
branch = auto
diff = auto
status = auto
[color "blame"]
highlightRecent = 22, 72 month ago, 28, 60 month ago, 64, 48 month ago, 100, 36 month ago, 39, 24 month ago, 75, 12 month ago, 111, 8 month ago, 147, 4 month ago, 183, 2 month ago, 219, 1 month ago, 46, 16 day ago, 82, 8 day ago, 118, 4 day ago, 154, 2 day ago, 190, 1 day ago, 226
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = cyan
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "grep"]
filename = magenta
linenumber = green
match = red bold
# Aliases
[alias]
ls = log -n 32 --pretty=format:"%C(yellow)%h\\ %C(green)[%cr]\\ %C(reset)%s\\ %C(red)%d" --decorate --date=short
lo = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cd]\\ %C(red)%d" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cd]\\ %C(red)%d" --decorate --date=short --stat
lt = log --pretty=format:"%C(yellow)%h\\ %C(green)[%cd]\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate --date=format:'%d%b %Y %H:%M'
tree = log --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(red)%d" --decorate --graph
all = ls-tree -r HEAD --name-only
entire = !git log --pretty=format: --name-only --diff-filter=ACR | sort -u
l = ls
find = ls-files
bl = blame -w
br = branch
cm = commit
co = checkout
ff = merge --ff-only
force = push --force-with-lease
mkroot = commit --allow-empty -m 'Initial commit'
rb = rebase -i
rba = rebase --abort
rbc = rebase --continue
rw = commit --amend # reword
squash = merge --squash
sub = submodule
spull = submodule update --init --recursive
bis = bisect
dc = checkout --
discard = checkout --
undo = reset --mixed HEAD@{1}
unstage = restore --staged
d = diff
ds = diff --staged # queued changes staged; much shorter
now = diff HEAD origin/main # check comparison to upstream
recent = log --diff-filter=A --oneline --pretty=format:"%C(yellow)%h\\ %C(cyan)[%cn]\\ %C(reset)%s\\ %C(green)[%cn]" --name-status # command for recently ADDED files
s = status -s -b
ss = status -s -b
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
trailing = grep -n -I '[[:blank:]]$'
trails = grep -l -I '[[:blank:]]$'
[blame]
coloring = highlightRecent
[commit]
gpgSign = true
verbose = true
[diff]
colorMoved = default
tool = meld
[format]
pretty = fuller
[grep]
lineNumber = true
[interactive]
diffFilter = delta --color-only
[merge]
conflictstyle = diff3
[pull]
rebase = true
[push]
default = current
autoSetupRemote = true
[tag]
gpgSign = true
[delta]
file-decoration-style = box cyan
file-style = bold cyan
hunk-header-decoration-style = ul yellow
hunk-header-line-number-style = 255
hunk-header-style = yellow line-number
hyperlinks = true
line-numbers = true
line-numbers-minus-style = bold 160
line-numbers-plus-style = bold 47
line-numbers-zero-style = white
max-line-length = 1024
navigate = true
zero-style = dim syntax
# vim: ft=gitconfig