forked from thoughtbot/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
77 lines (67 loc) · 1.87 KB
/
gitconfig
File metadata and controls
77 lines (67 loc) · 1.87 KB
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
[user]
name = Ian Vaughan
email = github@ianvaughan.co.uk
[alias]
co = checkout
ci = commit --verbose
amend = commit --amend
br = branch
st = status
ri = rebase -i --autosquash
# graph log of head branch
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(yellow)%an%Creset' --abbrev-commit --date=relative
# graph log of all branches
la = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(yellow)%an%Creset' --abbrev-commit --all --date=relative
d = diff
dc = diff --cached
#ds = diff --stat=160,120
#dh1 = diff HEAD~1
dm = !git l ...master -p
shas = log ...master --pretty=format:"%H"
# rshas = !git --no-pager log ...master --pretty=format:"%H"; echo "" | tail -r
head = !git l -1
h = !git head
# r = recent commits, only current branch
r = !git l -30
# ra = recent commits, all reachable refs
ra = !git r --all
# la = all commits, all reachable refs
la = !git l --all
# open vim at conflicts
vc = "!vim +/'<<<<<<' `git st -s | grep UU | sed 's/UU //'`"
[color]
ui = true
diff = auto
status = auto
branch = auto
interactive = auto
[push]
default = current
[core]
excludesfile = /Users/ianvaughan/.gitignore
editor = vim
autocrlf = input
[pager]
stash = false
diff = diff-so-fancy | less --tabs=4 -RFX
show = diff-so-fancy | less --tabs=4 -RFX
branch = false
[help]
autocorrect = 1
[git-up "bundler"]
check = true
autoinstall = true
[git-up "rebase"]
auto = false
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = 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
[git-up "fetch"]
prune = true