-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
77 lines (76 loc) · 2.51 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
67
68
69
70
71
72
73
74
75
76
77
# pepellou's git config file
# path: ~/.gitconfig
#
# be aware to include in your gitconfig file only those
# configuration you understand, since there might be
# options you cannot/shouldn't apply. For instance,
# the alias.test is intended for PHP projects, the
# core.bigFileThreshold is intended for short source
# code files, etc.
[alias]
test = !sh -c \"phpunit --colors test/\"
tests = "!sh -c \"for file in test/*Test.php; do echo \\$file:; phpunit \\$file > results34fu35g.test; grep -v \\\"^$\\\" results34fu35g.test | grep -v Bergmann; rm results34fu35g.test; done\""
last = cat-file commit HEAD
graph = !sh -c \"git l --graph\"
funcdiff = !sh -c \"git show \\\"\\$1:\\$3\\\" | sed -n \\\"/^[^ \\t].*\\$4(/,/^}/p\\\" > .tmp1 &&\n git show \\\"\\$2:\\$3\\\" | sed -n \\\"/^[^ \\t].*\\$4(/,/^}/p\\\" > .tmp2 &&\n git diff --no-index .tmp1 .tmp2\"
g = !sh -c \"git graph\"
br = branch
ci = commit
co = checkout
st = status
workon = !sh -c 'vi -o `git show --pretty=\"format:\" --name-only $1 | tail -n +2 | xargs`' -
wtf = !sh -c 'message=$(curl http://whatthecommit.com/index.txt 2> /dev/null) && git commit -m \"$message\"' -
work = "!sh -c \"vi -o `(git diff --name-only && git clean --dry-run | awk '{print \\$3;}') | xargs`\""
hist = log --graph --pretty=format:'%Cred%h%Creset %s%C(yellow)%d%Creset %Cgreen(%cr)%Creset [%an]' --abbrev-commit --date=relative
[branch "master"]
rebase = true
[branch]
autosetuprebase = always
[color]
ui = auto
grep = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "grep"]
match = red bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[commit]
status = true
[core]
editor = vi
excludesfile = ~/.gitignore
bigFileThreshold = 200k
autocrlf = input
precomposeunicode = false
[format]
pretty = format:%C(blue black bold)%h%Creset %C(green bold)%s%Creset%C(yellow)%d%Creset [%C(cyan)%an%Creset] - %C(red)%ar
[github]
user = pepellou
#token = your_token_here
[http]
lowSpeedTime = 10
[push]
default = current
[status]
showUntrackedFiles = all
[user]
name = Pepe Doval
email = [email protected]
[web]
browser = google-chrome
[credential]
helper = osxkeychain
[rebase]
autosquash = true
[ghi]
token = !security find-internet-password -a pepellou -s github.com -l 'ghi token' -w