-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgitconfig
More file actions
131 lines (131 loc) · 3.12 KB
/
gitconfig
File metadata and controls
131 lines (131 loc) · 3.12 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
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
120
121
122
123
124
125
126
127
128
129
130
131
[user]
name = Gaston Festari
email = cilindrox@gmail.com
signingkey = ~/.ssh/id_ed25519.pub
[core]
pager = less -RFX
excludesfile = ~/.gitignore
autocrlf = input
editor = nvim
attributesfile = ~/.gitattributes
fsmonitor = true
untrackedCache = 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
[branch]
sort = -committerdate
[fetch]
prune = true
pruneTags = true
all = true
[merge]
conflictStyle = zdiff3
[push]
default = simple
autoSetupRemote = true
followTags = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = false
[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
verbose = true
; template = ~/.gitmessage
[tag]
gpgsign = true
sort = version:refname
[gpg]
program = gpg
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.config/git/allowed_signers
[help]
autocorrect = 10
[diff]
indentHeuristic = true
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
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 "git@github.com:"]
# 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