-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
67 lines (67 loc) · 1.96 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
[user]
name = João Rafael
email = joaoraf@me.com
signingkey = /Users/joaorafael/.ssh/work.pub
[core]
editor = nvr -cc split --remote-wait +'set bufhidden=wipe' --servername $NVIM
excludesfile = /Users/joaorafael/.gitignore_global
pager = delta
hooksPath = ~/.config/githooks
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
syntax-theme = gruvbox-dark
commit-style = omit
file-decoration-style = none
hunk-header-style = omit
line-numbers-left-format = " {nm:>1} "
line-numbers-right-format = " {np:>1} "
line-numbers-minus-style = red
line-numbers-plus-style = green
line-numbers-zero-style = black
navigate = true
[pull]
rebase = true
default = current
[diff]
tool = nvimdiff
submodule = log
algorithm = histogram
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
[alias]
fixup = "!git log -n 50 --pretty=format:'%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
c = "!git commit && git push origin $(git branch --show-current)"
p = "!git add . && git commit && git push origin $(git branch --show-current)"
pr = "!git add . && git commit && git push origin $(git branch --show-current) && gh pr create --base $(basename $(git symbolic-ref --short refs/remotes/origin/HEAD)) --head $(git branch --show-current) --fill-first $1"
a = add
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
[push]
default = current
[commit]
gpgSign = true
[init]
defaultBranch = main
[safe]
directory = /Users/joaorafael/dotfiles/vim/plugins/vim-gh-line
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[gpg]
program = gpg
format = ssh
[branch]
autoSetupMerge = always
sort = -committerdate
[rebase]
autoSquash = true
autoStash = true
[rerere]
enabled = true
[help]
autocorrect = prompt