forked from freitagbr/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
48 lines (48 loc) · 1.03 KB
/
gitconfig
File metadata and controls
48 lines (48 loc) · 1.03 KB
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
[user]
name = Brandon Freitag
email = freitagbr@gmail.com
[core]
editor = vim
excludesfile = ~/.gitignore
[alias]
l = log --oneline -20 --reverse
lg = log --oneline -20 --graph --abbrev-commit
last = log -1 HEAD
s = status -s
sb = status -sb
st = status -sb
pl = pull
pr = pull --prune
ps = push
po = !git push origin $(git bn)
co = commit -am
com = commit -m
ca = !git add -A && git co
br = branch
ch = checkout
cb = checkout -b
mas = checkout master
fe = fetch
cl = clone
sh = stash
sa = stash apply
cp = read-tree -u -m
cy = cherry-pick
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
cf = config
cfg = config --global
cfl = config --list
cfgl = config --global --list
[push]
default = simple
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true