-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
93 lines (76 loc) · 2.12 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[core]
editor = nano
[user]
name = Kasper Jacobsen
email = k@mackwerk.dk
[color]
branch = always
diff = always
grep = always
interactive = always
pager = true
showbranch = always
status = always
ui = always
[apply]
whitespace = fix
[branch]
autosetupmerge = true
#autosetuprebase = always
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
tool = sublime
[mergetool "sublime"]
cmd = subl -w $MERGED
trustExitCode = false
# Use `origin` as the default remote on the `master` branch in all cases
[branch "master"]
remote = origin
merge = refs/heads/master
[push]
default = tracking
[fetch]
recurseSubmodules = true
[log]
decorate = short
[pretty]
custom = %C(yellow)%h%Creset -%C(green)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset
[alias]
dc = diff --cached
df = diff --word-diff
co = checkout
cp = cherry-pick
st = status
br = branch -a
lg = log --graph --pretty=medium --abbrev-commit --date=local
lgb = log --graph --pretty=medium --abbrev-commit --date=local --branches --all
lol = log --graph --oneline
lola = log --graph --oneline --all
l = log --graph --pretty=custom
la = log --graph --pretty=custom --all
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
onto = !"git co -b __ONTOTMP; git co $1; git merge __ONTOTMP; git branch -d __ONTOTMP"
today = log --since=midnight --author='Kasper Jacobsen' --oneline
# exclude files locally
exclude = !sh -c 'echo "$1" >> .git/info/exclude' -
# URL shorthands
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[credential]
helper = cache