-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
97 lines (79 loc) · 1.81 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
[user]
name = Shota Kubota
email = [email protected]
[color]
ui = true
status = auto
diff = auto
branch = auto
grep = auto
[core]
autoCRLF = false
editor = vim
precomposeunicode = true
quotepath = false
excludesfile = ~/.gitignore
[commit]
template = ~/.gitmessage.txt
[push]
default = simple
[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 "grep"]
match = cyan
linenumber = bold white
filename = yellow
[color "status"]
added = yellow
changed = green
[alias]
ad = add
st = status
ft = fetch
ch = cherry-pick
ci = commit
co = checkout
br = branch
pl = pull
ps = push
df = diff
rb = rebase
sw = switch
gr = grep
grr = grep --break --heading
logg = log --stat --decorate=short --pretty=format:'%C(yellow)%h %Cgreen%ci %Cblue%cn%Cred%d %Creset%s %C(cyan)%b'
fixup = !sh -c 'git commit -m \"fixup! $(git log -1 --format='\\''%s'\\'' $@ | sed \"s/fixup\\! //\")\"' -
ri = rebase --interactive --autosquash
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
sw-develop = switch develop
b = checkout -b
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[hub]
protocol = https
[ghq]
root = ~/src
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[grep]
lineNumber = true
[github]
user = kubosho
[ghi]
token = !security find-internet-password -a kubosho -s github.com -l 'ghi token' -w
[rebase]
autosquash = true