-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
95 lines (72 loc) · 1.76 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
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
84
85
86
87
88
89
90
91
92
93
94
95
# vi:ft=gitconfig
[user]
# default user
name = nobe4
email = [email protected]
signingKey = 8EB61429D6C54B9B1787EBA0911FE2A36C3403DD
[github]
user = nobe4
[url "[email protected]:"]
insteadOf = "https://github.com/"
[commit]
gpgsign = true
[gpg]
program = gpg
[core]
hooksPath = ~/.config/dotfiles/git-hooks
editor = nvim
excludesFile = ~/.gitignore_global
# untrackedcache = true
# fsmonitor = true
[format]
signOff = true
[alias]
alias = !git-alias
main = !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4
df = difftool
last-tag = !git describe --abbrev=0 || git describe --tags
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
amend=commit --amend
oops = !git commit -a --fixup=HEAD && GIT_EDITOR=true git rebase -i --autosquash HEAD~2
safe-pull = !git-safe-pull
rebase-main = !"git fetch; git rebase origin/$(git main)"
sweep = !git-sweep
recent-branches = branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"
dft = difftool
dlog = "-c diff.external=difft log -p --ext-diff"
[init]
defaultBranch = main
[pull]
default = current
rebase = true
[push]
default = current
[fetch]
prune = true
[submodule]
recurse = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[diff]
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[pager]
difftool = true
[column]
ui = auto
[branch]
sort = committerdate
[rerere]
enable = true
[include]
# Add [maintenance] section there, so it's not tracked
path = ~/dev/.gitconfig
path = ~/dev/github/.gitconfig