-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
58 lines (46 loc) · 1001 Bytes
/
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
[user]
name = Tyler Brazier
email = [email protected]
[core]
pager = vim -R -
editor = vim
[color]
# don't send color escape characters to vim pager (:syntax handles coloring)
pager = false
[pager]
# don't use pager (vim) for these commands (https://stackoverflow.com/a/49862151)
branch = false
tag = false
[fetch]
prune = true
[push]
default = simple
[pull]
ff = only
[blame]
date = short
[alias]
s = status
a = add -A
c = commit -v
co = checkout
cl = clean -f -d
l = log --stat
b = branch
d = diff
f = fetch --all
m = merge
r = remote -v
rb = rebase
rs = reset
ss = stash save
sl = stash list --stat
sp = stash pop
sa = stash apply
sd = stash drop
up = push -u
down = pull --rebase --autostash
# deletes branch locally and on remote
out = "!f() { git branch -D $1; git push --delete origin $1; }; f"
# deletes all old local branches where the upstream branch has been deleted
bent = "!git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d"