gma,gmc,gmf,gms,gmt
This commit is contained in:
parent
0eea7d052e
commit
235202a64d
1 changed files with 30 additions and 25 deletions
|
@ -294,39 +294,44 @@ glp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# abort the current merge commit
|
# abort the current merge commit
|
||||||
alias gma="\
|
gma() {
|
||||||
git \
|
git \
|
||||||
merge \
|
merge \
|
||||||
--abort \
|
--abort \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# do a merge commit
|
# do a merge commit
|
||||||
alias gmc="\
|
gmc() {
|
||||||
git \
|
git \
|
||||||
merge \
|
merge \
|
||||||
--no-ff \
|
--no-ff \
|
||||||
--message \
|
--message \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# fast-forward to remote branch
|
# fast-forward to remote branch
|
||||||
alias gmf="\
|
gmf() {
|
||||||
git \
|
git \
|
||||||
merge \
|
merge \
|
||||||
--ff-only \
|
--ff-only \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# squash a branch and index its modifications
|
# squash a branch and index its modifications
|
||||||
alias gms="\
|
gms() {
|
||||||
git \
|
git \
|
||||||
merge \
|
merge \
|
||||||
--squash \
|
--squash \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# merge via external tool
|
# merge via external tool
|
||||||
alias gmt="\
|
gmt() {
|
||||||
git \
|
git \
|
||||||
mergetool \
|
mergetool \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# push to the remote repository
|
# push to the remote repository
|
||||||
alias gp="\
|
alias gp="\
|
||||||
|
|
Loading…
Reference in a new issue