Repository navigation
Expand file tree
/
Copy path.gitconfig
More file actions
83 lines (66 loc) · 1.67 KB
/
Copy path.gitconfig
File metadata and controls
83 lines (66 loc) · 1.67 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
[user]
name = Zane Duffield
email = duffieldzane@gmail.com
[init]
defaultBranch = main
[alias]
b = branch
c = checkout
cp = cherry-pick
s = status
reword = commit --amend --only
dirdiff = difftool --dir-diff
dirdiffs = dirdiff --staged
diffs = diff --staged
difftools = difftool --staged
dirshow = "!f(){ git dirdiff \"${1-HEAD}~\" \"${1-HEAD}\"; }; f"
basediff = "! git difftool \"$(git merge-base \"$(git rev-parse --abbrev-ref origin/HEAD)\" HEAD)\""
rebasebase = "! git rebase --keep-base \"$@\""
merge-ours = merge -s recursive -Xours
fpwl = push --force-with-lease
si-range-diff = -c pager.range-diff='~/dotfiles/git-range-diff-delta-preproc | delta --features=side-range-diff' range-diff
[core]
autocrlf = false
longpaths = true
editor = vim
pager = delta
# fsmonitor gives me grief on Linux
# fsmonitor = true
[advice]
detachedHead = false
[rebase]
autosquash = true
[branch]
autosetuprebase = always
[interactive]
diffFilter = ~/dotfiles/delta.sh
[delta]
navigate = true # use n and N to move between diff sections
side-by-side = true
# mangles the output in vscode :(
#hyperlinks = true
hyperlinks-file-link-format = "vscode://file/{path}:{line}"
# copied from the "zebra-dark" theme
map-styles = \
bold purple => syntax "#330f29", \
bold blue => syntax "#271344", \
bold cyan => syntax "#0d3531", \
bold yellow => syntax "#222f14"
[blame]
pager = delta
[merge]
conflictstyle = diff3
ff = only
[diff]
colorMoved = default
[difftool]
prompt = false
[absorb]
maxStack=50
oneFixupPerCommit = true
[column]
ui = auto
[branch]
sort = -committerdate
[include]
path = ~/.gitconfig.local