gco,gcoo,gcp,gcpa,gcpc
This commit is contained in:
parent
a92770848e
commit
3554f0b905
1 changed files with 28 additions and 23 deletions
|
@ -115,37 +115,42 @@ commit \
|
||||||
"
|
"
|
||||||
|
|
||||||
# switch to a branch or checkout file(s) from a commit
|
# switch to a branch or checkout file(s) from a commit
|
||||||
alias gco="\
|
gco() {
|
||||||
git \
|
git \
|
||||||
checkout \
|
checkout \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# checkout an orphan branch
|
# checkout an orphan branch
|
||||||
alias gcoo="\
|
gcoo() {
|
||||||
git \
|
git \
|
||||||
checkout \
|
checkout \
|
||||||
--orphan \
|
--orphan \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# pick a commit
|
# pick a commit
|
||||||
alias gcp="\
|
gcp() {
|
||||||
git \
|
git \
|
||||||
cherry-pick \
|
cherry-pick \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# abort the commit pick
|
# abort the commit pick
|
||||||
alias gcpa="\
|
gcpa() {
|
||||||
git \
|
git \
|
||||||
cherry-pick \
|
cherry-pick \
|
||||||
--abort \
|
--abort \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# continue the commit pick
|
# continue the commit pick
|
||||||
alias gcpc="\
|
gcpc() {
|
||||||
git \
|
git \
|
||||||
cherry-pick \
|
cherry-pick \
|
||||||
--continue \
|
--continue \
|
||||||
"
|
"${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# configure the user name
|
# configure the user name
|
||||||
alias gcun="\
|
alias gcun="\
|
||||||
|
|
Loading…
Reference in a new issue