forked from jferris/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
35 lines (34 loc) · 1006 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
# ADD LOCAL CONFIGURATION HERE
# DO NOT EDIT BELOW THIS LINE
[push]
default = current
[color]
branch = auto
diff = auto
status = auto
[format]
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s
[alias]
a = !git add -u && git add . && git status -s
adi = !git add -u && git add . && git diff --cached
ap = commit --amend -C HEAD
bd = !sh -c 'git branch -D $1 && git push origin :$1' -
c = commit -v
ca = commit --amend
co = checkout
cp = cherry-pick
di = diff
dic = diff --cached
mm = !test `git rev-parse master` = $(git merge-base HEAD master) && git checkout master && git merge HEAD@{1} || echo "Non-fastforward"
plre = pull --rebase
pr = remote prune origin
ps = push
rbc = rebase --continue
rbi = rebase -i
st = status -s
unwip = !test "`git log -n1 --pretty=format:%s`" = "wip" && git reset HEAD~1
up = !git fetch origin && git rebase origin/master
wip = !git add -A && git commit -m "wip"
[core]
excludesfile = ~/.gitignore
autocrlf = input