-
Notifications
You must be signed in to change notification settings - Fork 2
/
.shell-aliases
46 lines (35 loc) · 1011 Bytes
/
.shell-aliases
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
alias lsb="git branch"
alias lsd="git diff"
alias lsds="git diff --stat"
alias gs="git status"
alias gcp="git cherry-pick"
alias gcpc="gcp --continue"
alias grv="git remote -v"
alias gra="git remote add"
alias grh="git reset --hard HEAD"
alias gsh="git reset --soft HEAD"
alias gpr="git pull --rebase"
alias gprud="gpr upstream develop"
alias gprum="gpr upstream master"
alias gprur="gpr upstream release"
alias gpo="git push origin"
alias gpom="gpo master"
alias gpod="gpo develop"
alias gpor="gpo release"
alias gco="git checkout"
alias gcod="gco develop"
alias gcom="gco master"
alias gcor="gco release"
alias gcot="gco temp"
alias plog="git log --oneline --graph --all"
alias glo="git log --oneline"
alias gloten="glo -n10"
alias gsyncm="gprum && gpom"
alias gsyncd="gprud && gpod"
alias gfetcha="grv | grep fetch | awk '{print $1}' | xargs -n 1 git fetch"
# forced push
alias gpf="git push -f"
alias gpfo="gpf origin"
alias gpfom="gpfo master"
alias gpfod="gpfo develop"
alias gpfot="gpfo test"