-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitconfig
52 lines (51 loc) · 1.35 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
[user]
name = Andrew Grangaard
email = [email protected]
# email = [email protected]
[color]
branch = always
status = auto
diff = auto
[color "diff"]
whitespace = red reverse
[core]
editor = /usr/bin/env vim
pager = less -FRSX
whitespace = tab-in-indent,tab-in-indent
[merge]
tool = vimdiff
[alias]
refix = !GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash
freebase = refix
lastrev = log -n 1 --pretty=tformat:%H --
lbs = log --stat origin/master..
lb = log origin/master..
mod = !git diff --name-only --no-color -z | fzf --read0 -m
modh = !git diff --name-only --no-color -z $GIT_PREFIX | fzf --read0 -m
edit = !$EDITOR $(git mod)
vim = edit
path = rev-parse --show-prefix
modified2 = !git diff --name-only
mod2 = "!f() { git modified2 -z --no-color \"$@\" | fzf --read0 -m; }; f"
vim2 = "!g() { $EDITOR $(git mod2); }; g"
vimdiff = difftool -y -t vimdiff -R
[hub]
protocol = https
[url "[email protected]:"]
insteadOf = "https://git.ziprecruiter.com/"
[url "[email protected]:"]
#insteadOf = "https://github.prod.hulu.com/"
[pull]
rebase = true
[rebase]
autosquash = true
autostash = true
[push]
default = simple
[rerere]
enabled = true
[diff "odt"]
textconv = odt2txt
binary = true
[init]
defaultBranch = main