-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
101 lines (85 loc) · 1.94 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
94
95
96
97
98
99
100
101
[alias]
a = add
aa = add --all
ap = add --patch
b = branch
ba = branch --all
bd = branch --delete
c = commit
ca = commit --amend
cm = commit --message
cam = commit --amend --message
ce = clean
cef = clean --force
cefx = clean --force -x
cl = clone
co = checkout
cob = checkout -b
d = diff
dc = diff --cached
pl = pull
ps = push
psf = push --force
r = reset
rh = reset --hard
re = restore
res = restore --staged
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rmc = rm --cached
s = status
st = stash
std = stash drop
stl = stash list
stp = stash pop
;; prettier git log to quickly show commits
hist = log --graph --pretty=format:'%C(red)%h%C(reset) %s%C(yellow)%d%C(green) (%cr)%C(blue) [%an]%C(reset)' --abbrev-commit --date=relative
;; prettier git log to show only file additions and deletions
stat = log --graph --stat --pretty=format:'%C(red)%h%C(reset) %C(ul)%s%C(reset)%C(yellow)%d%C(green) (%cr)%C(blue) [%an]%C(reset)%n' --abbrev-commit --date=relative
;; prettier git reflog
rlog = reflog --pretty=format:'%C(red)%h%C(reset) %C(ul)%gD%C(reset): %gs%C(yellow)%d%C(green) (%ar)%C(blue) [%an]%C(reset)'
[branch "main"]
remote = origin
[color]
ui = auto
status = auto
[color "branch"]
current = yellow bold
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = blue bold
old = red bold
new = green bold
whitespace = black reverse
[color "grep"]
filename = blue
linenumber = yellow
match = green black bold
separator = normal
[color "status"]
header = normal
added = green
changed = yellow
untracked = red
branch = blue bold
[core]
excludesfile = ~/.gitignore
pager = delta
[delta]
line-numbers = true
navigate = true
[grep]
linenumber = true
[init]
defaultBranch = main
[merge]
conflictstyle = diff3
[pull]
rebase = false
[push]
autoSetupRemote = true
default = simple