Repository navigation
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
68 lines (59 loc) · 1.55 KB
/
Copy pathdot_gitconfig.tmpl
File metadata and controls
68 lines (59 loc) · 1.55 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
[user]
name = {{ .git.name | quote }}
email = {{ .git.email | quote }}
[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]
editor = vim
excludesfile = ~/.gitignore
[pull]
rebase = true
[fetch]
prune = true
[push]
autoSetupRemote = true
[url "git@github.com:"]
insteadOf = https://github.com/
[include]
path = ~/Development/dotfiles-private/gitconfig
[includeIf "gitdir:~/Development/work/"]
path = ~/Development/dotfiles-work/gitconfig
[include]
path = ~/.gitconfig.local