-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
29 lines (29 loc) · 906 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
[user]
name = Mike Perrone
email = [email protected]
[alias]
oldbranches = for-each-ref --sort=-committerdate refs/heads/
branches = branch --sort=-committerdate
st = status
cp = cherry-pick
dc = diff --cached
dn = diff --name-only
cm = commit -m
co = checkout
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ri = "!echo use gri instead"
rc = rebase --continue
ra = rebase --abort
rs = restore --staged
mc = merge --continue
ma = merge --abort
# set upstream from current branch:
set-upstream = "!f() { git branch --set-upstream-to=origin/$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --abbrev-ref HEAD); }; f"
su = set-upstream
delete = "!del() { git branch -D $1; git push origin :$1; }; del"
[color]
ui = true
[push]
default = simple
[pull]
rebase = false