-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
78 lines (56 loc) · 1.45 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
[user]
name = John-Michael Glenn
email = phyre19@gmail.com
[github]
user = phyreman
[core]
autocrlf = input
editor = subl
quotepath = false
excludesfile=~/.gitignore
[color]
ui = auto
diff = auto
status = auto
branch = auto
[help]
autocorrect = 1
[advice]
resolveconflict = true
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[alias]
# branching, made easier
b = checkout -b
# list branches
branches = branch -a --color
# commit aliases
c = commit -m
# clean up merged branches
cleanup = !sh -c 'BRANCH=`git branch --merged | grep -v master | tr -d \" \"` && git push origin :$BRANCH'
# checkout is too long to type
co = checkout
# hard reset
goto = reset --hard
# inspired by co-workers
fix = commit -am "fix"
# history as a tree
hist = log --graph --oneline --all --decorate --color
# pull with a rebase (suggested by teh internetz)
p = pull --rebase
# publish a branch
publish = push -u origin HEAD
# list remotes verbosely
remotes = remote -v
# better status
st = status -sb
# git add -u shortcut
u = add -u
# publish without setting remote every time
up = push origin HEAD
# update all remotes, pruning removed tracking branches
update-remotes = remote update --prune