-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gitconfig
63 lines (50 loc) · 1.72 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
[alias]
amend = commit --amend -m ""
b = branch -v -v
ctags = !.git/hooks/ctags
hub = !hub
l = log --graph --pretty=format:'%Cred%h%Creset -%C(green)%d%Creset %s %C(yellow)(%cr) %C(blue)<%an>%Creset'
st = status --short --branch
start = !git init && git commit --allow-empty -m \"initial empty commit\"
svn-diff = !git-svn-diff
who = log --graph --pretty=format:'%Cred%h%Creset - %C(blue)a: %an <%ae>%Creset %C(green)c: %cn <%ce>%Creset - %s'
x = !gitx
# GitHub pull request aliases (https://gist.github.com/gnarf/5406589)
pr = !git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && :
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
# git-codereview aliases (https://golang.org/x/review/git-codereview)
change = codereview change
gofmt = codereview gofmt
mail = codereview mail
pending = codereview pending
rebase-work = codereview rebase-work
submit = codereview submit
sync = codereview sync
[color]
ui = auto
[core]
excludesfile = ~/.gitignore
quotepath = false
[diff "vim"]
command = vimdiff
[init]
templatedir = ~/.git_template
[log]
decorate = short
[pull]
rebase = true
[push]
default = simple
[rerere]
enabled = 1
[user]
name = Will Norris
email = will@willnorris.com
# Allow pushing changes when working with a "read-only" remote from GitHub.
# Only configured for personal repos though, not any organization-owned repos.
[url "git@github.com:willnorris/"]
pushInsteadOf = https://github.com/willnorris/
pushInsteadOf = git://github.com/willnorris/
[url "git@github.com:cchmb/"]
pushInsteadOf = https://github.com/cchmb/
pushInsteadOf = git://github.com/cchmb/