-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitconfig
51 lines (50 loc) · 1.47 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
[user]
name = minimul
email = [email protected]
[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
pop = push origin production
pod = push origin development
pup = pull origin production
pum = pull origin master
pus = pull origin staging
pud = pull origin development
puum = pull upstream master
fup = fetch upstream
com = checkout master
cop = checkout production
cos = checkout staging
cod = checkout development
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"
[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].*)$"