-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgitconfig
More file actions
62 lines (50 loc) · 1.82 KB
/
Copy pathgitconfig
File metadata and controls
62 lines (50 loc) · 1.82 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
# Git runs these through a shell, so they can check for delta first. ./install
# installs it on both platforms, but a box without it should still have working
# `git log` and `git add -p` rather than "delta: command not found".
# Note: an unquoted ';' starts a comment in a gitconfig, which silently
# truncates the value. Hence the surrounding double quotes.
[core]
pager = "sh -c 'command -v delta >/dev/null 2>&1 && exec delta || exec ${PAGER:-less}'"
[interactive]
diffFilter = "sh -c 'command -v delta >/dev/null 2>&1 && exec delta --color-only || exec cat'"
[delta]
navigate = true
dark = true
[user]
name = Miles Z. Sterrett
email = miles@mileszs.com
[apply]
whitespace = strip
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status
d = diff
a = add
ci = commit
cia = commit -a
co = checkout
cob = checkout -b
br = branch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
l1 = log --pretty=oneline --abbrev-commit --decorate
lp = log -p
who = shortlog -s --
datetag = !git tag `date \"+%Y%m%d%H%M\"`
churn = "!f() { git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g; }; f"
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim -p `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
[github]
user = mileszs
[merge]
tool = nvimdiff
[pull]
rebase = false
[init]
defaultBranch = main
# Per-machine settings that don't belong in the repo: a work email, a
# different signing key, credential helpers. Missing file is not an error.
[include]
path = ~/.gitconfig.local