-
Notifications
You must be signed in to change notification settings - Fork 2
/
gitconfig
119 lines (119 loc) · 2.9 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[user]
name = Gaston Festari
email = [email protected]
signingkey = ~/.ssh/id_ed25519.pub
[core]
pager = less -RFX
excludesfile = ~/.gitignore
autocrlf = input
editor = nvim
attributesfile = ~/.gitattributes
fsmonitor = true
[credential]
helper = osxkeychain
# gnome - helper = /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
# linux - helper = cache --timeout=7200
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "status"]
added = green
changed = yellow
untracked = cyan
[alias]
aa = add --all --intent-to-add
ap = add --patch
append = commit --amend --no-edit
branchname = rev-parse --abbrev-ref HEAD
whatchanged=for-each-ref --sort='-authordate:iso8601' --count 20 --format=' %(color:green)%(authordate:relative)%09%(if)%(HEAD)%(then)%(color:brightwhite)*%(else)%(color:white) %(end)%(refname:short)%09%(color:yellow)%(authorname)%(authoremail)' refs/heads
cm = commit -m
ctags = !.git/hooks/ctags
d = diff --color-words
ds = diff --staged
dh = diff --color-words head
dft = difftool
fix = commit --fixup
l = log --graph --all -20
last = describe --abbrev=0 --tags
ls = log --graph --all
ll = log --format=medium --stat --abbrev-commit
pb = pull --rebase
pf = push --force-with-lease
pl = pull --ff-only
uncommit = reset --soft HEAD^
unstage = reset HEAD --
rfl = log --walk-reflogs
s = status --short --branch
squ = commit --squash
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t => \\2/' | sort
[fetch]
prune = true
[merge]
conflictStyle = zdiff3
[push]
default = simple
[rebase]
autoSquash = true
autoStash = true
[rerere]
enabled = true
autoupdate = true
[pull]
ff = only
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[commit]
gpgsign = true
; template = ~/.gitmessage
[tag]
gpgsign = true
[gpg]
program = gpg
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.config/git/allowed_signers
[help]
autocorrect = 10
[diff]
indentHeuristic = true
algorithm = histogram
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft --display inline "$LOCAL" "$REMOTE"
[pager]
difftool = true
[format]
pretty = format:%C(yellow)%h%C(cyan)%d%Creset %s - %C(bold blue)%an%Creset %C(magenta)(%ar)%Creset
# URI replacer when using SSH auth
# [url "[email protected]:"]
# insteadOf = https://github.com/
[url "https://github.com/"]
insteadOf = gh:
[url "https://gist.github.com/"]
insteadOf = gist:
[init]
defaultBranch = main
templatedir = ~/.git_template
[advice]
skippedCherryPicks = false
[includeIf "gitdir:~/github/work/"]
path = ~/.gitconfig-work