-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig.symlink
75 lines (70 loc) · 2.13 KB
/
.gitconfig.symlink
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
# Git Config
# Put the following lines in ~/.config/git/config instead of this file:
# [user]
# email = <[email protected]>
# name = <Full name>
[core]
editor = nvim
excludesfile = ~/.cvsignore
[color]
ui = auto
[alias]
co = checkout
ci = commit
br = branch
st = status -sb
rs = reset
cl = clean
ls = log --date=short \
--pretty=format:"%C(yellow)%h\\ %C(green)%ad\\ %C(reset)%s\\ %C(red)%d\\ %C(blue)[%cn]"
lg = !git ls --graph
la = !git lg --all
amend = commit --amend
wipe = "!git reset --hard; git clean -fxd"
subwipe = "submodule foreach --recursive \"git wipe; echo ''\""
mrproper = "! \
printf \"\\033[1m\\033[7m TOP REPOSITORY \\033[0m\n\"; \
git wipe; \
echo \"\"; \
\
printf \"\\033[1m\\033[7m SUBMODULES \\033[0m\n\"; \
git subwipe; \
git submodule update --init; \
printf \"\\033[1mMrProper wiped your repositories.\\033[0m\n\"; \
"
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[push]
default = simple
[pull]
rebase = true
[diff]
colorMoved = zebra
wsErrorHighlight = all
[rebase]
autoStash = true
[rerere]
enabled = true
# As delta may not always be available on the various machines where these
# dotfiles are used, the following lines should not be added in this file
# but in $HOME/.config/git/config:
#
# [core]
# pager = delta
# [interactive]
# diffFilter = delta --color-only --features=interactive
[delta]
features = decorations
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax