-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
44 lines (43 loc) · 1.23 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
[user]
name = Justin Mazzi
email = [email protected]
[alias]
co = checkout
stat = status
ci = commit
tree-diff = log --pretty=oneline --graph --all
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
browse = !url=$( \
echo \"`git config remote.origin.url`\" | \
ruby -e \"url = ARGF.read.chomp\" \
-e \"url.sub! %r{^(git(://|@)|http(s?)://)}, ''\" \
-e \"url.sub! ':', '/'\" \
-e \"url.sub! %r{\\.git\\$}, ''\" \
-e \"print('http://' + url) if url != ''\" \
) && [[ -n $url ]] && open $url || echo \"Can't find origin.\" && exit 1
wdiff = diff --color-words
create-pr = !git ptrack && gh pull-request
tree-graph = log --graph --simplify-by-decoration --pretty=format:'%d' --all
bare-branch = !git symbolic-ref HEAD | sed 's|refs/heads/||g'
ptrack = !git push -u origin $(git bare-branch)
[color]
branch = auto
diff = auto
status = auto
wtf = auto
ui = 1
[branch]
autosetupmerge = true
[rerere]
enabled = 1
[push]
default = tracking
[core]
excludesfile = ~/.gitignore_global
[rebase]
autosquash = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[include]
path = ~/.localgitconfig