-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
58 lines (58 loc) · 1.69 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
[core]
excludefile = ~/.gitignore_global
[alias]
#Need to pick one eventually
#Lazy pull request helper: http://www.enrise.com/2013/08/git-pull-requests-for-the-lazy-developer/
pr = "!pr() { git fetch upstream refs/pull/$1/head:refs/remotes/upstream/pr/$1; git checkout upstream/pr/$1; }; pr"
#github.com/btford/btford-env/blob/master/git/.gitconfig
pr = "!pr() { git co -b pr-$1 upstream/pr/$1; }; pr"
lol = "log --graph --decorate --pretty=oneline --abbrev-commit --all"
a = add -p
af = add
afa = add -A
b = branch
cl = clone
ac = !git add -A && git commit -m
cm = commit -m
ca = !git add -A && git commit --amend --no-edit
cam = commit --amend
c-pi = cherry-pick
co = checkout
com = checkout master
d = diff
f = fetch
fall = fetch --all
fum = fetch upstream master
i = init
l = log -p
p = push
po = push origin
pum = push upstream master
r = rebase
ri = rebase -i
s = status
last-sha = "!lsha() { git rev-parse master | tr -d '\n' | pbcopy; git rev-parse master; }; lsha"
doc-pr = "!docpr() { git fum; git pr $1; git r upstream/master; git c-a; git co master; git r pr-$1; }; docpr"
cp-stable = "!cpstable() { SHA=`git rev-parse master`; git f upstream v1.2.x; git co v1.2.x; git r upstream/v1.2.x; git c-pi $SHA; }; cpstable"
[color]
ui = true
[push]
default = simple
[pull]
rebase = true
[merge]
tool = vimdiff
[remote "upstream-prs"]
fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
[diff]
tool = vimdiff
[difftool]
prompt = false
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[user]
email = scullabyte@gmail.com
name = scullabyte
gpgsign = false