-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
70 lines (69 loc) · 2.67 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
[github]
user = gregory
[user]
name = gregory
email = greg2502@gmail.com
[alias]
lg = log -g --format=raw --date=relative
l = log --format=raw --name-status --abbrev-commit --date=local
ll = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)-%an, %ar%Creset'
me = log --pretty=oneline --format=fuller --author=gregory
lp = log --pretty=oneline --date=relative
wtf = log -g --abbrev-commit --format=raw --date=local --decorate=full --pretty=oneline --all
lw = log -p --format=fuller --abbrev-commit --date=local
local = log --branches --not --remotes=origin --pretty=oneline
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
rb = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/remotes/origin"
rlb ="!git for-each-ref --sort=-committerdate refs/$1 --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
lb ="!git for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'|less"
[color]
ui = true
interactive = auto
diff = auto
status = auto
branch = auto
[color "grep"]
linenumber = yellow bold
match = red
filename = magenta
[core]
excludesfile = /Users/greg/.gitignore
editor = vim
autocrlf = input
pager = less -MN
logAllRefUpdates = true
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset
[merge]
tool = meld
[mergetool]
keepBackup = false
[push]
default = simple
[pull]
rebase = true
[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
[url "https://"]
insteadOf = git://
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[diff]
wsErrorHighlight = all
[credential]
helper = osxkeychain
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f