-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
47 lines (46 loc) · 1.07 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
[url "[email protected]:"]
insteadOf = https://github.com/
[core]
editor = nvim -f
[alias]
cane = commit --amend --no-edit
authors-list = shortlog -e -s -n
aliases = "!f() { git config --global -l | grep alias | sort; }; f"
uncommit = reset --soft HEAD^
revertfile = checkout --
count-lines = "!git log --author=\"liubenjamin\" --since=\"2024-07-08\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2 } END { print \"Added lines: \" add; print \"Removed lines: \" subs; print \"Total lines changed: \" add + subs }'"
[push]
autoSetupRemote = true
[pull]
rebase = true
[merge]
conflictStyle = zdiff3
[gpg]
format = ssh
[user]
name = benjamin liu
signingkey = /Users/benjamin.liu/.ssh/id_ed25519.pub
[branch]
sort = -committerdate
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
side-by-side = true
line-numbers = true
syntax-theme = GitHub
[diff]
colorMoved = default
algorithm = histogram
[gc]
auto = 1
[commit]
gpgsign = true
[pack]
threads = 6
[help]
autocorrect = 10
[rebase]
autosquash = true