-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitconfig
More file actions
50 lines (50 loc) · 1.53 KB
/
.gitconfig
File metadata and controls
50 lines (50 loc) · 1.53 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
[user]
name = minimul
email = christian@minimul.com
[core]
editor = vim
excludesfile = ~/.global_gitignore
attributesfile = ~/.gitattributes
[diff]
[color]
ui = auto
[alias]
st = status
sh = stash
ci = commit
br = branch
brd = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:relative) %09 %(refname:short)'
co = checkout
pp = log --pretty=oneline
di = diff
dc = diff --cached
po = push origin
pom = push origin master
pum = pull origin master
puum = pull upstream master
fup = fetch upstream
com = checkout master
pr = "!f() { git fetch -fu ${2:-upstream} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git checkout master ; git for-each-ref refs/heads/pr/* --format=\"%(refname)\" | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
# `git log` with patches shown with difftastic.
dl = -c diff.external=difft log -p --ext-diff
# Show the most recent commit with difftastic.
ds = -c diff.external=difft show --ext-diff
# `git diff` with difftastic.
dft = -c diff.external=difft diff
[merge]
tool = vimdiff
[github]
user = minimul
[heroku]
account = personal
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
# Additional manually-configured matchers you may want to add to your .gitconfig
[diff "rspec"]
xfuncname = "^[ \t]*((RSpec|describe|context|it|before|after|around|feature|scenario|background)[ \t].*)$"
[commit]
template = ~/.gitmessage