forked from gf3/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
96 lines (77 loc) · 1.86 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
[user]
name = Damion Vega
email = [email protected]
[alias]
amend = commit --amend --no-edit
a = add
br = branch
c = commit
cm = commit -m
; Example: g ch main...abcd1234
ch = log --cherry --pretty=format:\"%C(auto)%h (%ar) %an: %s\" --date-order --reverse
co = checkout
cob = checkout -b
cpx = cherry-pick -x
d = diff --no-prefix
dc = diff --cached --no-prefix
df = diff
f = fetch origin main:main
g = grep -I
ls = branch --list
lsg = branch --list | grep
l = log
lg = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
lp = log -p
loq = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
p = push
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbm = rebase main
rmd = rm $(git ls-files --deleted)
s = status
su = submodule update[branch]
autosetuprebase = always
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[pull]
rebase = true
[push]
default = simple
[rerere]
enabled = 1
[commit]
gpgsign = false
[core]
pager = diff-so-fancy | less --tabs=2 -RFX
[protocol]
version = 2
[credential]
helper = osxkeychain
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = "heroku:"