-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
65 lines (63 loc) · 1.46 KB
/
dot_gitconfig.tmpl
File metadata and controls
65 lines (63 loc) · 1.46 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
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
st = status
ci = commit
ca = commit -S --amend
pf = push --force-with-lease
rb = !git fetch -p && git rebase -S -i origin/develop
cp = cherry-pick
dev = !git switch develop && git pull
master = !git switch master && git pull
br = branch
co = checkout
df = diff
dc = diff --cached
lg = log -p
lol = log --graph --pretty='%C(red)%h %C(green)%G? %<|(25,mtrunc)%C(yellow)%an %C(auto)%d %C(blue)%s'
logl = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --all --pretty='%C(red)%h %<|(25,mtrunc)%C(yellow)%an %C(auto)%d %C(blue)%s'
ls = ls-files
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
[user]
email = {{ .email }}
name = {{ .name }}
{{- if .work }}
signingKey = /home/nrm/.ssh/id_ed25519.pub
{{- else }}
signingKey = /home/nrm/.ssh/id_ecdsa.pub
{{- end }}
signingkey = 7FB60532DEBEAD6A
[gpg]
format = ssh
[push]
default = current
[http]
sslVerify = true
sslCAinfo = /etc/ssl/cert.pem
[credential]
helper = cache --timeout=3600
[url "git@github.com:"]
insteadOf = https://github.com/
[rebase]
autoStash = true
autoSquash = true
[column]
ui = auto