-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
66 lines (55 loc) · 1.78 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
[core]
editor = "emacs -nw --quick"
excludesfile = /home/humitos/.gitignore_global
[color]
diff = auto
ui = auto
[user]
name = Manuel Kaufmann
email = humitos@gmail.com
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[alias]
b = branch
# https://github.com/brandon-rhodes/homedir/blob/master/.gitconfig
ci = commit
amend = commit --amend
co = checkout
d = diff
l = log --graph --pretty=oneline --abbrev-commit --decorate=short
lp = log -p
ls = log --stat
st = status -s
locate = ls-tree --name-only -r HEAD
pr = "!f() { git fetch origin pull/${1}/head:pr/${1}; git checkout pr/${1}; }; f"
prpush = "!f() { git push git@github.com:${2}/python-docs-es.git pr/${1}:${3}; }; f"
serve-this = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
# Serve all RTD external repositories to test them
# git clone git://localhost/requests
serve-readthedocs = daemon --verbose --export-all --base-path=/home/humitos/rtfd/repos --reuseaddr
# Delete branches that were already merged
# https://stackoverflow.com/a/33548037/2187091
cleanup-gone-branches = "!git fetch --prune && for branch in `git branch -vv | grep -E ': (gone|desaparecido)' | grep -v '*' | gawk '{print $1}'`; do git branch -D $branch; done"
# https://gist.github.com/schacon/942899
cleanup-merged-branches = "!git fetch --prune && for branch in `git branch --merged | grep -v '*' | grep -v master | grep -v develop`; do git branch -d $branch; done"
[push]
default = simple
[merge]
tool = meld
[credential]
helper = cache
[magit]
hideCampaign = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true