-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgitconfig
88 lines (87 loc) · 2.14 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
[user]
name = Danny Smith
email = [email protected]
[alias]
st = status
co = checkout
br = branch
p = push
df = diff
lg = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'
lga = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all
pf = push --force-with-lease
amend = commit --amend --no-edit
who = shortlog -s --
cl = clone
pushall = push --recurse-submodules=on-demand
s = status -s
purr = pull --rebase --autostash
stashed = stash list --pretty=format:'%gd: %Cred%h%Creset %Cgreen[%ar]%Creset %s'
[core]
excludesfile = ~/.gitignore_global
editor = code --wait
autocrlf = input
[merge]
summary = true
[push]
default = current
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[pull]
rebase = true
[rerere]
enabled = true
[commit]
gpgsign = false
verbose = true
# so much color
[color]
ui = always
diff = auto
status = auto
branch = auto
interactive = auto
[color "diff"]
meta = yellow bold
commit = green bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red
oldHighlight = "red bold 52"
newNormal = "green"
newHighlight = "green bold 22"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
# rewrites of repo paths
[url "[email protected]:"]
insteadOf = "gh:"
insteadOf = "git://github.com"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
pushInsteadOf = "https://github.com/"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
pushInsteadOf = "https://gist.github.com/"
[init]
defaultBranch = main
[credential "https://github.com"]
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/opt/homebrew/bin/gh auth git-credential
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true