Repository navigation
Expand file tree
/
Copy pathgitconfig
More file actions
77 lines (76 loc) · 2.18 KB
/
Copy pathgitconfig
File metadata and controls
77 lines (76 loc) · 2.18 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
[color]
# Colors are nice.
ui = auto
[column]
# Columnize listings according to terminal width.
ui = auto
[branch]
# Sort branches by most recent commit first.
sort = -committerdate
[tag]
# Sort tags lexically with newest first, e.g. the wrong default sorting:
# 9.0.0, 9.0.1, 9.0.10, 9.0.11, 9.0.2, 9.0.3
# instead becomes:
# 9.0.11, 9.0.10, 9.0.3, 9.0.2, 9.0.1, 9.0.0
sort = -v:refname
[diff]
# Use better diff algorithm than the old default.
algorithm = histogram
# Use different color for moved blocks and inserted blocks.
colorMoved = plain
# Instead of a/ and b/ prefixes in paths, use c/i/w to indicate commit/index/worktree.
mnemonicPrefix = true
# Detect if file was renamed.
renames = true
# If diffing with external tool, use nvimdiff (see below).
tool = nvimdiff
[difftool]
# Prompt when diffing with external tool.
prompt = true
[difftool "nvimdiff"]
# Cmdline for using nvim to diff files.
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
[push]
# Push only the current branch to same name in remote (I guess it's default now anyway).
default = simple
# Automatically set up remote tracking branches.
autoSetupRemote = true
[fetch]
# By default, fetch all available remotes.
all = true
# Make "git fetch --prune" also prune tags.
pruneTags = true
[help]
# Ask when autocorrect wants to fix your mistakes.
autocorrect = prompt
[commit]
# It's convenient to have the full diff of the commit in the editor for reference when
# writing the commit message.
verbose = true
[core]
# Global excludes file.
excludesfile = ~/.gitignore
[rebase]
# When having stacked refs, make sure they are moved when branch is rebased.
updateRefs = true
[merge]
# Show 3-way diff for parts with conflicts ("z" variant is in newer Git versions).
conflictstyle = zdiff3
[pull]
# When pulling remote changes, rebase by default.
rebase = true
[alias]
# Some convenient aliases.
adog = log --all --decorate --oneline --graph
s = status
d = diff
subu = submodule update --recursive --init
codeowners = shortlog -ns --no-merges
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
# Customize these:
[init]
defaultBranch = main