-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
41 lines (41 loc) · 1 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
[color]
ui = true
pager = true
[user]
name = Abhishek Rai
email = mail@raiabhishek.com
signingkey = ~/.ssh/id_rsa.pub
# run `git config --global --unset gpg.format` before using gpg key
# signingKey = 72471FC55B6D8AC3008B71EB22E13F39CDE58A8C
[core]
editor = nvim
excludesFile = ~/.gitignore
[alias]
pull-submodules = "submodule update --init --recursive"
pr = "!f() { git checkout main; git branch -D pr/$1 || true; git fetch origin refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
branches = "branch -a"
newbranch = "!f() { git checkout main; git pull origin main; git checkout -b darthfork/$1; }; f"
showcommit = "diff-tree -p"
[pager]
diff = less
branch =
log = less
[diff]
tool = nvimdiff
[difftool]
prompt = false
[commit]
gpgSign = true
[pull]
rebase = false
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[init]
defaultBranch = main
[gpg]
format = ssh
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f