forked from DoomHammer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
79 lines (67 loc) · 1.73 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
# vi:sw=8:sts=8:ts=8:noexpandtab
[color]
ui = auto
[user]
email = [email protected]
name = Piotr Gaczkowski
[core]
autocrlf = false
excludesfile = ~/.gitignore
whitespace = blank-at-eol,blank-at-eof,space-before-tab,tab-in-indent
# Use the best pager available
pager = (which diff-so-fancy >/dev/null 2>&1 && diff-so-fancy || which brew >/dev/null 2>&1 && $(brew --prefix git)/share/git-core/contrib/diff-highlight/diff-highlight || cat)|less
[push]
default = simple
[rerere]
enabled = true
autoupdate = true
[rebase]
# Automatically stash before a rebase and unstash afterwards.
autoStash = true
[commit]
# Show diff when preparing commit message
verbose = true
[alias]
a = add
s = status
st = status
ci = commit
b = branch
co = checkout
re = remote
d = diff
dc = diff --cached
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# Pull Upstream
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"
###
### Git-up specific
### https://github.com/aanand/git-up
###
[git-up "rebase"]
arguments = --preserve-merges
###
### Github specific
###
[github]
user = DoomHammer
# read from given uri
# push to writable one
# http://bit.ly/g9c9Y2
#
[url "http://github.com/"]
insteadOf = "gh:"
[url "[email protected]:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "http://github.com/"
pushInsteadOf = "gh:"
###
### Include local overrides
###
[include]
path = .gitconfig.local
[credential]
helper = "cache --timeout 86400"