-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig-base
94 lines (94 loc) · 2.7 KB
/
.gitconfig-base
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
[include]
path = .gitconfig-custom
[alias]
addi = "!git add --patch"
br = !git branch -vv
branches = !legit branches
cdiff = difftool -y -x 'icdiff --highlight --line-number'
ci = commit
co = checkout
cos = "!cos() { git stash && git checkout \"$@\" && git stash pop; }; cos"
db = branch --delete
dmbr = "!git dmb --effort 3"
dt = difftool
dtbc = difftool --tool=bc
dtd = "!git diff HEAD --unified=8 | delta"
dtm = difftool --tool=meld
dtsd = "!git diff HEAD --unified=8 | git-split-diffs --color | less --RAW-CONTROL-CHARS --quit-if-one-screen"
dump = cat-file -p
ff = !git fetch origin \"$@\":\"$@\"
ffm = "!sh -c 'git fetch origin master:master || (echo Trying main && git fetch origin main:main)'"
graft = !legit graft \"$@\"
harvest = !legit harvest \"$@\"
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
lh = "!lh() { git log --pretty=full -L $1,$1:\"$2\"; }; lh"
mm = merge origin/master --autostash
mtbc = mergetool --tool=bc
publish = !legit publish \"$@\"
pullr = "!git pull --rebase --autostash --all"
rs = "!git restore . --recurse-submodules"
sl = stash list
sprout = !legit sprout \"$@\"
st = status
switch = !legit switch \"$@\"
sync = !legit sync \"$@\"
type = cat-file -t
unpublish = !legit unpublish \"$@\"
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
[color]
ui = true
[core]
editor = vim
excludesfile = ~/.gitignore_global
filemode = false
fscache = true
pager = git-split-diffs
autocrlf = input
eol = lf
[diff]
colorMoved = default
[difftool]
prompt = false
[difftool "meld"]
cmd = meld "$LOCAL" "$REMOTE"
[fetch]
prune = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[format]
pretty = oneline
[gc]
auto = 256
[init]
defaultBranch = main
[interactive]
diffFilter = "diff-so-fancy --patch"
[merge]
conflictStyle = diff3
[mergetool]
prompt = false
[mergetool "meld"]
cmd = meld "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED"
[pull]
rebase = true
[push]
autoSetupRemote = true
[submodule]
fetchJobs = 0
recurse = true
[delta]
features = side-by-side line-numbers decorations
dark = true
line-numbers = true
navigate = true
side-by-side = true
syntax-theme = Coldark-Dark
[stash]
showPatch = true
[split-diffs]
syntax-highlighting-theme = github-dark
theme-name = dark