-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
44 lines (44 loc) · 1.08 KB
/
dot_gitconfig.tmpl
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
[user]
name = {{ .git.name }}
email = {{ .git.email }}
[alias]
a = add
aa = add .
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
c = commit -m
ca = commit -am
co = checkout
cob = checkout -b
cod = checkout develop
com = checkout master
comn = checkout main
conf = config --global -l
cos = checkout staging
d = diff
dc = diff --check
dv = difftool -t vimdiff -y
fa = fetch --all
fl = log -u
g = grep -niro
graph = log --oneline --graph --decorate
l = log
last = log -1 HEAD --stat
ll = log --oneline
mc = merge --continue --no-edit
ph = push origin
phd = push origin develop
phm = push origin master
phmn = push origin main
phs = push origin staging
pl = pull origin
pld = pull origin develop
plm = pull origin master
plmn = pull origin main
pls = pull origin staging
r = reset
rh = reset head
s = status
se = !git rev-list --all | xargs git grep -F
undo = reset --soft HEAD~1
[core]
excludesfile = /Users/{{ .system.user }}/.gitignore