forked from jferris/config_files
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
52 lines (52 loc) · 1.52 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
[push]
default = tracking
[color]
diff = auto
status = auto
branch = auto
[color "diff"]
whitespace = red reverse
[core]
excludesfile = ~/.gitignore
editor = /usr/bin/vim
quotepath = false
# pager = cat
[format]
# pretty = %Cblue%h%Creset %Cgreen[%cr]%Creset (%an) %s
pretty = %Cblue%h%Creset %Cgreen[%cd]%Creset (%an) %s
[alias]
ml = !~/bin/method_log.rb
c = commit -m
a = add
di = diff
dic = diff --cached
pl = pull
ps = push
plre = pull --rebase
st = status
out = log origin..HEAD
qpl = log --pretty=\"%Cblue%h%Creset %Cgreen[%cr]%Creset %s\" origin/production..origin/master
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
lg = log --graph --decorate --pretty=oneline --abbrev-commit
lga = log --graph --decorate --pretty=oneline --abbrev-commit --all
# show body
shb = log --format=%B -n 1
ci = commit
ca = commit --amend
oldest-ancestor = !bash -c 'diff --old-line-format= --new-line-format= <(git rev-list --first-parent \"${1:-master}\") <(git rev-list --first-parent \"${2:-HEAD}\") | head -1' -
bd = !git diff $(git oldest-ancestor)
ch = checkout
[user]
name = Stan Bright
email = stan@stanbright.com
[giggle]
main-window-maximized = true
main-window-geometry = 0x0+0+0
main-window-view = HistoryView
history-view-vpane-position = 500
file-view-hpane-position = 392
file-view-vpane-position = 396
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true