-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig
69 lines (64 loc) · 1.48 KB
/
config
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
# set better default colors
[color]
ui = auto
[color "branch"]
current = green bold
local = green dim
remote = blue
[color "diff"]
meta = yellow bold
frag = magenta ul
old = magenta bold
new = green bold
[color "status"]
added = green
changed = yellow
untracked = magenta
# set the default branch to main
[init]
defaultBranch = main
# always push up local branches to the remote origin
[push]
autoSetupRemote = true
default = current
# default rebase commits to avoid merge issues
[pull]
rebase = true
# personal stuff like gpg config, username, etc
[includeIf "gitdir:~/"]
path = ~/.config/git/personal
# aliases, mostly fixing typos
[alias]
root = rev-parse --show-toplevel
ad = add
addd = add
banch = branch
brnach = branch
rbanch = branch
cm = commit
cmmit = commit
commmit = commit
commti = commit
comit = commit
ocmmit = commit
co = checkout
checkotu = checkout
hceckout = checkout
chckout = checkout
ceckout = checkout
chekout = checkout
checout = checkout
checkut = checkout
checkuot = checkout
chekcout = checkout
cehckout = checkout
chckeout = checkout
idff = diff
psuh = push
puhs = push
[gpg]
format = ssh
[user]
signingkey = ~/.ssh/id_rsa.pub
[commit]
gpgsign = true