-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
80 lines (80 loc) · 2.7 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
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[user]
name = CallumHoward
email = [email protected]
[push]
default = current
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
sb = status -sb
sl = stash list --pretty=format:'%C(red)%h%C(reset) - %C(yellow)(%gd%C(yellow))%C(reset) %<(70,trunc)%s %C(green)(%cr) %C(bold blue)<%an>%C(reset)'
rl = reflog --pretty=format:'%Cred%h%Creset %C(yellow)%gd%C(reset) %C(auto)%gs%C(reset) %C(green)(%cr)%C(reset) %C(bold blue)<%an>%Creset' --abbrev-commit
vimdiff = difftool
dt = difftool
# git change-commits GIT_COMMITTER_EMAIL "<email_old>" "<email_new>"
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
[pager]
#diff = diff-so-fancy | less --tabs=4 -RFX# --pattern '^(Date|added|deleted|modified): .*$'
#diff = diff-so-fancy | menos --tabs=4 -iFMRSX --pattern='^(Date|added|deleted|modified): .*$'
#delta = delta --side-by-side --diff-so-fancy # | menos --tabs=4 -iFMRSX --pattern='^(Date|added|deleted|modified): .*$'
diff = git-split-diffs --color | less --tabs=4 -iFMRSX
[interactive]
#diffFilter = delta --color-only
[diff]
tool = vimdiff
algorithm = patience
indentHeuristic = true
[difftool]
prompt = false
[difftool "vimdiff"]
cmd = nvim -d $BASE $LOCAL
[merge]
tool = vimdiff
[mergetool "vimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[core]
pager = git-split-diffs --color | less -RFX
# pager = delta --diff-so-fancy # | menos --tabs=4 -iFMRSX
excludesfile = ~/.gitignore_global
[delta]
syntax-theme = neodark
line-numbers = false
features = decorations
navigate = true
[delta "decorations"]
file-style = bold white ul
file-decoration-style = bold white ul ol
[color "diff"]
meta = 15
commit = 83
frag = 4
old = 160
new = 83
whitespace = 160 reverse
[color "diff-highlight"]
oldNormal = 160
oldHighlight = 160 52
newNormal = 83
newHighlight = 83 22
[credential]
helper = cache --timeout=3600000
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[split-diffs]
theme-name = github-dark-dim
[pull]
rebase = false
[init]
defaultBranch = master