-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
93 lines (76 loc) · 2.04 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
# This is Git's per-user configuration file.
[user]
name = NOT A REALNAME
email = DUMMY@GMAIL.COM
[push]
default = current
autoSetupRemote = true
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[diff]
tool = vscode
[merge]
conflictStyle = diff3
renamelimit = 0
tool = smerge
[url "git@github.com:"]
insteadOf = https://github.com/
[pull]
rebase = true
[rebase]
autoStash = true
[core]
excludesfile = ~/.gitignore
editor = vim
[alias]
co = checkout
b = branch
ca = commit --amend -a --no-edit
cm = commit -m
cob = checkout -b
cod = checkout -
com = checkout main
coms = checkout master
s = status
stag = tag -s
undo = reset --soft HEAD~1
p = pull --rebase --autostash
##################
################## This entire section is related to configuring commit/tag signing ##################
##################
# When uncommented, this block enables signing all commits and tags
[commit]
gpgsign = true
[tag]
gpgsign = true
forceSignAnnotated = true
# When uncommented, makes git use the system ssh binary instead of the Brew binary.
# This is sometimes required or broken, depending on the version of macos, brew SSH, etc. DIAF Apple.
# [core]
# sshCommand = /usr/local/bin/ssh
####
## You can only enable at most _one_ of the below sections, or Bad Things may happen.
####
# Option 1: SSH Key signing with a standard SSH key
# [gpg]
# format = ssh
# [gpg "ssh"]
# allowedSignersFile = ~/.ssh/allowed_signers
# [user]
# signingkey = $KEY_TYPE $KEY_SIGNATURE $KEY_EMAIL
# Option 2: SSH Key signing with a security key (Yubikey, Nitrokey, etc)
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[user]
# Note that unlike other key formats, for THIS FORMAT ONLY, a filepath is required instead of a signature. Sigh
signingkey = ~/.ssh/id_ed25519_sk.pub
# Option 3: GPG Key signing with a GPG key
# [gpg]
# format = openpgp
# [user]
# signingkey = $GPG_KEY_ID
##################
################## This entire section is related to configuring commit/tag signing ##################
##################