-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
116 lines (116 loc) · 3.55 KB
/
.gitconfig
File metadata and controls
116 lines (116 loc) · 3.55 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
[user]
name = Chris Petersen
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
pager = delta
# [http]
# sslVerify = false
[init]
defaultBranch = main
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[commit]
gpgsign = true
[branch]
autosetupmerge = simple
autosetuprebase = always
[push]
default = current
[pull]
default = rebase
rebase = true
[merge]
# tool = vimdiff
conflictStyle = zdiff3
[color]
branch = auto
diff = auto
status = auto
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "grep"]
context = normal
filename = magenta
function = cyan
linenumber = green
match = green
selected = normal
separator = cyan
[color "status"]
added = green
changed = yellow
untracked = cyan
[alias]
br = branch
branchlog = "!git log $(git rev-parse --not --branches | grep -v $(git rev-parse $1)) $1"
ci = commit
cleanup = !git_cleanup
co = checkout
dc = diff --cached
dif = diff
logn = log --name-status
logp = log -p
new = "!git log $(ref=$(git symbolic-ref HEAD); echo $(git config -z --get branch.${ref##refs/heads/}.remote)/$(rbranch=$(git config --get branch.${ref##refs/heads/}.merge); echo ${rbranch##refs/heads/})).."
only = !git_only
pruneall = "!git fetch origin --prune --tags; git remote prune origin"
st = status
stat = status
wheres=branch -a --contains
bpush = "!git push --set-upstream origin $(git describe --contains --all HEAD)"
permission-reset = "!git diff -p | grep -E \"^(diff|old mode|new mode)\" | sed -e \"s/^old/NEW/;s/^new/old/;s/^NEW/new/\" | git apply"
# Originals (not using delta)
bbranch = -c core.pager='less -F' branch
blog = -c core.pager='less -F' log
bshow = -c core.pager='less -F' show
bdiff = -c core.pager='less -F' diff
bblame = -c core.pager='less -F' blame
bgrep = -c core.pager='less -F' grep
# side-by-side using delta
slog = -c core.pager=delta -c delta.side-by-side=true log
sshow = -c core.pager=delta -c delta.side-by-side=true show
sdiff = -c core.pager=delta -c delta.side-by-side=true diff
sblame = -c core.pager=delta -c delta.side-by-side=true blame
dlog = -c core.pager=delta -c delta.side-by-side=false log
dshow = -c core.pager=delta -c delta.side-by-side=false show
ddiff = -c core.pager=delta -c delta.side-by-side=false diff
[diff]
algorithm = histogram
colorMoved = default
colormovedws = allow-indentation-change
mnemonicPrefix = true
renames = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[interactive]
diffFilter = delta --color-only
[delta]
hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
navigate = true
side-by-side = false
line-numbers = true
syntax-theme = zenburn
file-style = 'deepskyblue italic ul'
file-decoration-style = 'deepskyblue ul'
hunk-header-decoration-style = 'deepskyblue box'
hunk-header-file-style = 'deepskyblue'
hunk-header-line-number-style = 'deepskyblue'
inline-hint-style = 'deepskyblue'
line-numbers-left-style = 'deepskyblue'
line-numbers-right-style = 'deepskyblue'
# kill switch for color-moved support (it looks like crap)
inspect-raw-lines = false