-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
85 lines (76 loc) · 2.19 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[user]
name = Adam Gruber
email = [email protected]
[core]
quotepath = false
excludesfile = ~/.gitignore_global
[color]
ui = true
[alias]
st = status -s -b
cl = clone
ci = commit
cm = commit -m
cma = commit -a -m
co = checkout
cod = checkout develop
com = checkout master
cp = cherry-pick
br = branch
pr = pull --rebase
pod = pull origin develop
prod = pull --rebase origin develop
#list commands
le = log --oneline --decorate
ll = log --pretty=format:"%C(yellow)%h%C(white)%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate --numstat
ls1 = log --pretty=format:"%C(yellow)%h%C(white)%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate
lds = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%C(white)%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate --date=short --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%C(white)%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate --date=relative
lc = "!f() { git ll "$1"^.."$1"; }; f"
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
#list all aliases
la = "!git config -l | grep alias | cut -c 7-"
#stash
sl = stash list
sa = stash apply
ss = stash save
sp = stash pop
sh = !sh -c 'git stash show stash@{$1}' -
shp = !sh -c 'git stash show stash@{$1} -p' -
sd = !sh -c 'git stash drop stash@{$1}' -
# show changes since last tag
tagchanges = !git ls `git lasttag`...
# get the last tag
lasttag = describe --tags --abbrev=0
# publish current branch to origin
pub = "!git push -u origin $(git branch | grep \\* | cut -d ' ' -f2)"
#gitflow
fi = flow init -d
ff = flow feature
ffl = flow feature list
ffs = flow feature start
fff = flow feature finish
ffp = flow feature publish
fft = flow feature track
ffd = flow feature diff
ffr = flow feature rebase
fr = flow release
frl = flow release list
frs = flow release start
frf = flow release finish
frp = flow release publish
frt = flow release track
fh = flow hotfix
fhs = flow hotfix start
fhf = flow hotfix finish
fhp = flow hotfix publish
fht = flow hotfix track
[credential]
helper = osxkeychain
[url "https://"]
insteadOf = git://
[push]
default = simple
[pager]
stash = false
diff = false