-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
76 lines (76 loc) · 1.77 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
[user]
name = João Pinheiro
email = joao.castropinheiro@gmail.com
signingKey = 91ADD829DF348AF5E044F4B9FC58442053D6479A
[push]
default = tracking
autoSetupRemote = true
[pull]
default = tracking
rebase = true
[merge]
tool = vimdiff
[status]
showUntrackedFiles = all
showStash = true
[fetch]
prune = true
[commit]
gpgsign = false
[pager]
branch = false
diff = delta
log = delta
reflog = delta
show = delta
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
singleKey = true
# git add -p is cool but I think I'll keep using git gui
[delta]
navigate = true
navigate-regex = "Δ|removed:|renamed:|added:"
line-numbers = true
#syntax-theme = "base16"
[diff]
colorMoved = default
[alias]
lg = log --color --graph --pretty=format:'%h (%Cgreen%cd%Creset) %s %C(6)%an <%ae>%Creset %C(blue)%d%Creset' --abbrev-commit --date=format:'%d/%m/%Y %H:%M:%S'
lga = lg --all
lf = log -p --follow
rlog = reflog --pretty=short --date=iso
filehist = log -p --follow
pushf = push --force-with-lease
pushff = push --force
pusht = push --tags --prune
stash-show = stash show -p
fetcha = fetch --all --tags --force --prune --prune-tags
pulla = pull --all --tags --force --prune
cl = clone --recurse-submodules
g = gc --prune=now --aggressive
rs = reset HEAD
co = checkout
[tag]
forceSignAnnotated = true
[gui]
tabsize = 4
warndetachedcommit = true
displayuntracked = false
[rebase]
autoStash = true
updateRefs = true # https://andrewlock.net/working-with-stacked-branches-in-git-is-easier-with-update-refs/
[init]
defaultBranch = main
[credential]
helper = store
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[advice]
skippedCherryPicks = false
[blame]
#ignoreRevsFile = .git-blame-ignore-revs