forked from twpayne/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_gitconfig.tmpl
89 lines (88 loc) · 1.89 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
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
[user]
name = {{ .name }}
email = [email protected]
[advice]
pushNonFastForward = false
statusHints = false
[alias]
a = add
ap = add -p
b = branch
bm = branch --merged
bnm = branch --no-merged
c = clone
ca = commit --amend
cane = commit --amend --no-edit
cf = commit --fixup
cm = commit --message
co = checkout
cob = checkout -b
com = checkout master
cp = cherry-pick
d = diff --patience
dc = diff --cached
dom = diff origin/master
fo = fetch origin
g = grep --line-number
mbhom = merge-base HEAD origin/master
mff = merge --ff-only
ol = log --pretty=oneline
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
p = push
pf = push --force
prb = pull --rebase
r = remote
ra = rebase --abort
rc = rebase --continue
ri = rebase --interactive
rl = reflog
riom = rebase --interactive origin/master
rpo = remote prune origin
s = status -sb
ss = commit --message snapshot --no-gpg-sign
su = submodule update
wd = diff --patience --word-diff
# https://golang.org/doc/contribute.html
change = codereview change
gofmt = codereview gofmt
mail = codereview mail
pending = codereview pending
submit = codereview submit
sync = codereview sync
[color]
ui = auto
[core]
editor = vim
excludesfile = ~/.gitignore
whitespace = trailing-space,space-before-tab
[diff]
renames = copies
[fetch]
fsckobjects = false
prune = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[http]
cookiefile = ~/.gitcookies
[pager]
branch = false
grep = false
[push]
default = current
[rebase]
autosquash = true
autostash = true
[receive]
fsckobjects = true
[status]
submoduleSummary = true
[transfer]
fsckobjects = true
[trim]
bases = master,gh-pages
[url "[email protected]:twpayne/"]
insteadOf = https://github.com/twpayne/
# vim: set filetype=gitconfig: