forked from jcorbin/starter_home
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
118 lines (101 loc) · 3.1 KB
/
.gitconfig
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
114
115
116
117
118
[branch]
autosetupmerge = always # setup branch tracking
autosetuprebase = always # default to rebasing rather than merge
[color]
# turn on coloring in terminals
ui = auto
[column]
# format lists, e.g. from git-branch, wide like `ls`'s output
ui = auto
[diff]
renames = copies # more aggresisve rename detection
[core]
# Use less as our pager, turn off the -c option if it was specified in $LESS,
# also don't use -S as per git default
pager = "less -+c -FRX"
[grep]
patternType = perl # use modern regexp dialect by default
[log]
# change default passed to git-log, so that we now get by default:
# git log --abbrev-commit --date=relative --decorate ...
abbrevCommit = true
date = relative
decorate = true
[rebase]
stat = true # show a summary by default
autosquash = true # honor commit markers like `fixup!`
instructionFormat = [%ad] <%an> %s %d
[rerere]
# remember and re-use merge conflict resolutions
autoupdate = true
enabled = true
# log formats
[pretty]
brief = %C(red)%h%Creset %C(green)%ad%Creset %C(bold blue)<%an>%Creset %s%C(yellow)%d%Creset
briefbody = %C(red)%h%Creset %C(green)%ad%Creset %C(bold blue)<%an>%Creset %s%C(yellow)%d%Creset%n%n%-b
briefreflog = %C(green)%gd %C(red)%h%Creset %C(bold blue)<%gn>%Creset %gs
# Command aliases
[alias]
ap = add -p
au = add --update
br = branch
brav = branch -av
brv = branch -v
cf = clean -f
ch = cherry -v
ci = commit
cia = commit -a
ciam = commit -a -m
cic = commit -c
cim = commit -m
cix = commit --allow-empty -m 'Ex Nihilo'
cn = clean -n
co = checkout
cp = cherry-pick
dc = diff --cached
doh = commit --amend --no-edit
dohe = commit --amend --edit
lg = log --graph --pretty=brief
lga = log --graph --pretty=brief --all
lgb = log --graph --pretty=brief --branches
lgf = log --first-parent --graph --pretty=brief
lb = log --graph --pretty=briefbody
lba = log --graph --pretty=briefbody --all
lbb = log --graph --pretty=briefbody --branches
lbf = log --first-parent --graph --pretty=briefbody
pub = !git push -u origin $(git symbolic-ref HEAD | sed -e 's~^refs/heads/~~')
ra = rebase --abort
rb = rebase
rc = rebase --continue
redo = reset HEAD^ --mixed
rem = remote
remv = remote -v
rs = rebase --skip
rst = reset --hard
st = status --short --branch
suri = submodule update --recursive --init
uewu = config user.email [email protected]
mrg = merge --no-edit --no-ff
mark = commit -m mark --allow-empty
fp = merge-base --fork-point
# Commiter identity
[user]
email = [email protected]
name = REPLACE ME
[advice]
detachedHead = false
pushNonFastForward = false
statusHints = false
[apply]
# Fix all whitespace sins when applying patches
whitespace = fix
[pack]
# Use one thread per processor core for pac king
threads = 0
[push]
default = simple
[http]
followRedirects = true
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
pushInsteadOf = https://github.com/