-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
43 lines (43 loc) · 1.29 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
[core]
quotepath = false
excludesfile = /Users/michaelloo/.gitignore_global
[user]
name = Michael Loo
[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
[alias]
s = status
c = commit
b = branch
co = checkout
r = rebase
d = diff
dc = diff --cached
wd = diff --word-diff
l = log --oneline
pushom = push origin master
pullom = pull origin master
su = submodule update --init
si = submodule init
owner = !sh -c \"git blame --line-porcelain \\\"$@\\\" | sed -n \\\"s/^author //p\\\" | sort | uniq -c | sort -rn\"
cnm = commit --no-verify -m
a = add
cp = cherry-pick
mt = mergetool
pushup = push --set-upstream
bc = !sh -c \"git branch --merged | grep -Ev \\\"(develop|master|release)\\\" | xargs -I branch git b -d branch\"
rbc = !sh -c \"git branch -r --merged | grep -Ev \\\"(develop|master|release)\\\" | sed \\\"s/origin\\///g\\\" | xargs -I branch git push -d origin branch\"
bro = !sh -c \"${HOME}/Documents/dev/mac-osx-settings/bro.sh $1 $2\"
poush = push
[color]
diff = true
[push]
default = current
[merge]
tool = opendiff
[credential]
helper = osxkeychain