-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
72 lines (71 loc) · 1.39 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
# vim: noet
[user]
name = Matthew Rheaume
email = [email protected]
[diff]
renames = true
[grep]
lineNumber = true
[color]
ui = true
[http]
postBuffer = 524288000
[push]
default = simple
autoSetupRemote = true
[alias]
g = grep
a = add
c = commit
co = checkout
cob = checkout -b
s = status
rb = rebase
rbm = rebase -i main
rbc = rebase --continue
m = merge
l = log
p = push origin
up = fetch
prune = remote prune origin
re = reset --hard HEAD
f = fetch
d = diff
dh = diff HEAD
dh1 = diff HEAD~1
dh2 = diff HEAD~2
ds = diff --staged
dm = !git diff $(git merge-base --fork-point main)
b = branch
ba = branch -a
bl = branch -l
bm = branch -m
bd = branch -D
lp = !git log --format=format:"%s"
files = show --pretty="format:" --name-only
history = log --follow -p
stat = !git diff --stat HEAD^ HEAD
lg = log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[interactive]
diffFilter = diff-so-fancy --patch
[color "diff-highlight"]
oldNormal = red
oldHighlight = red 52
newNormal = green
newHighlight = green 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red
new = green
whitespace = red reverse
[submodule]
recurse = true
[include]
path = ~/.gitconfig.local
[credential]
helper = /usr/local/share/gcm-core/git-credential-manager