-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
33 lines (33 loc) · 823 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
[user]
name = Brandon Freitag
email = freitagbr@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore
[alias]
l = log --oneline -20 --reverse
s = status -s
st = status -sb
pl = pull
po = !git push origin $(git bn)
co = commit -S -am
com = commit -S -m
ca = !git add -A && git co
br = branch
ch = checkout
cb = checkout -b
mas = checkout master
fe = fetch
sh = stash
sa = stash apply
di = diff
dim = diff master
rh = reset --hard
un = reset HEAD~1 --mixed
dm = !git checkout master && git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d
bn = !git rev-parse --abbrev-ref HEAD
pub = !git push -u origin $(git bn)
up = !git mas && git fe && git pr && git dm
hot = !git log --pretty=format: --name-only | sed '/^\\s*$/d' | sort | uniq -c | sort -rg | head -10
[push]
default = simple