-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
30 lines (29 loc) · 1.6 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
[alias]
pr = pull --rebase
st = status
cim = commit -v -m
acim = ! git add --all && git commit -v -m
co = checkout
br = branch -v
bra = branch -v -a
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
lga = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative --all
di = diff
sdi = diff --cached
logfull = log --pretty=fuller --graph --stat -p
cat = cat-file -p
unstage = reset HEAD
uncommit = update-ref HEAD HEAD^
uncommithard = reset --hard HEAD^
tagg = ! git fetch origin -t && git tag -f -a -m 'created tag : `cat VERSION`' `cat VERSION` && git push origin --tags
tagc = ! TAG=`git describe --tags $(git rev-list --tags --max-count=1) | sed 's/v//' | awk -F . '{ printf "v%d.%d.%d", $1, $2, $3 + 1 }'` && echo $TAG > VERSION && git ci -m "Bumped to version : $TAG" VERSION && git tag -a -m "Created tag $TAG" $TAG && git push && git push --tags
rebc = rebase --continue
rebt = rebase --abort
rebs = rebase --skip
rebom = rebase origin/master
rebod = ! git fap && git rebase origin/develop
fap = fetch --all --prune
last = log -1 HEAD
stnfm = ! git -c core.fileMode=false st
[push]
default = simple