This repository has been archived by the owner on Nov 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
101 lines (101 loc) · 2.98 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
94
95
96
97
98
99
100
101
# http://git-scm.com/book/en/Customizing-Git-Git-Configuration
# https://github.com/tiimgreen/github-cheat-sheet#git-configurations
# http://haacked.com/archive/2014/07/28/github-flow-aliases/
[user]
name = Micky Hulse
email = [email protected]
[alias]
aliases = config --get-regexp alias
amend = commit -a --amend
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
bdone = "!f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f"
br = branch
branches = branch -a
ci = commit
cm = !git add -A && git commit -m
co = checkout
cob = checkout -b
df = diff
ec = config --global -e
g = grep -I
gc = commit -m
gp = push
lg = log -p
lol = !git log --graph --oneline --date-order --decorate --color --all -n 250
loq = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
pb = publish-branch
rb = rbranch
rc = rank-contributors
remotes = remote -v
rv = review
save = !git add -A && git commit -m 'SAVEPOINT'
sm = show-merges
st = status -sb
tags = tag -l
undo = reset HEAD~1 --mixed
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
wip = !git add -u && git commit -m "WIP"
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard
[core]
autocrlf = false
# Use custom `.gitignore`:
excludesfile = /Users/mhulse/.gitignore
# Treat spaces before tabs, lines that are indented with 8 or more
# spaces, and all kinds of trailing whitespace as an error:
whitespace = space-before-tab,indent-with-non-tab,trailing-space
# Watch for case changes:
ignorecase = false
[push]
default = simple
[merge]
log = true
[rerere]
enabled = 1
[branch]
autosetuprebase = always
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[color]
# Use colors in Git commands that are capable of colored output when
# outputting to the terminal:
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[help]
autocorrect = 1
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = "heroku:"