-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdot_gitconfig
More file actions
113 lines (106 loc) · 2.24 KB
/
Copy pathdot_gitconfig
File metadata and controls
113 lines (106 loc) · 2.24 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
[user]
name = Helder Burato Berto
email = helder.burato@gmail.com
[github]
user = helderburato
[core]
excludesfile = ~/.gitignore_global
attributesfile = ~/.gitattributes
ignorecase = false
[init]
defaultBranch = main
[push]
default = current
[pull]
rebase = true
[commit]
verbose = true
template = ~/.gittemplates/commit
[alias]
a = add
aa = add --all
ap = add . -p
#############
b = branch
bd = branch -d
bD = branch -D
br = branch -r
bm = branch -m
bv = branch -vv
#############
c = commit
cm = commit -m
ca = commit --amend
cma = !git add -A . && git commit -m
#############
cp = cherry-pick
cpa = cherry-pick --abort
cpc = cherry-pick --continue
#############
co = checkout
cob = checkout -b
#############
d = difftool
df = diff --color --color-words --abbrev
#############
f = fetch
fixup = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@)\"'
#############
l = log --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr) %C(bold blue)<%an>%Creset'
lc = log -1 --stat
lg = log --color --graph --pretty=format:'%C(red)%h%Creset -%C(yellow)%d%Creset %s %C(green)(%cr) %C(bold blue)<%an>%Creset'
#############
m = merge
ma = merge --abort
mc = merge --continue
ms = merge --skip
#############
pr = prune -v
#############
ps = push
pf = push --force
pfl = push --force-with-lease
pso = push origin
psu = push -u
pst = push --tags
#############
pl = pull
po = pull origin
pom = pull origin main
por = pull origin master
#############
rt = restore
rts = restore --staged
rtu = restore --source
#############
ra = remote add
rm = remote rm
rv = remote -v
#############
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rbs = rebase --skip
#############
sh = stash
shl = stash list
sha = stash apply
shc = stash clear
shp = stash pop
#############
st = status
#############
sw = switch
swc = switch -c
swm = switch main
swr = switch master
#############
t = tag
ta = tag -a
td = tag -d
#############
al = config --get-regexp alias
alf = config --get-regexp alias | grep
[url "git@github.com:"]
insteadOf = https://github.com/