Repository navigation
Expand file tree
/
Copy pathconfig
More file actions
62 lines (49 loc) · 1.44 KB
/
Copy pathconfig
File metadata and controls
62 lines (49 loc) · 1.44 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
[fetch]
prune = true
[init]
defaultBranch = "main"
[core]
pager = delta
[interactive]
diffFilter = "delta --color-only"
# Show the original lines in conflicts too, not just both sides
[merge]
conflictStyle = zdiff3
[diff]
algorithm = histogram
# Remember how I resolved a conflict and reuse it when the same one comes back,
# like when git town sync rebases a stack of branches
[rerere]
enabled = true
[pull]
rebase = "merges"
[push]
autoSetupRemote = true
# Use SSH for GitHub, including https:// URLs, so private repos clone with my
# SSH key. gist:, gst: and github: are short forms, like github:owner/repo.
[url "git@gist.github.com:"]
insteadOf = "gist:"
insteadOf = "gst:"
[url "git@github.com:"]
insteadOf = https://github.com/
insteadOf = "github:"
[alias]
# Undo the last commit and keep its changes staged
uncommit = reset --soft HEAD~
# Syntax-aware diffs with difftastic, next to the usual git diff
dft = -c diff.external=difft diff
dlog = -c diff.external=difft log -p --ext-diff
dshow = -c diff.external=difft show --ext-diff
[include]
path = "~/.config/git/identity"
# Settings for this machine only, like a work email. Not in this repo, and
# git skips it when the file is missing. Keep it after identity so it wins.
[include]
path = "~/.config/git/local"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[git-town]
sync-feature-strategy = rebase