commit
This commit is contained in:
parent
033999e9f6
commit
7e788e5940
1 changed files with 21 additions and 26 deletions
|
@ -83,36 +83,31 @@ gcf() {
|
|||
}
|
||||
|
||||
# commit the index
|
||||
alias gcm="\
|
||||
gcm() {
|
||||
git \
|
||||
commit \
|
||||
--message \
|
||||
"
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# redo the last commit with a different message
|
||||
alias gcma="\
|
||||
gcma() {
|
||||
git \
|
||||
commit \
|
||||
--amend \
|
||||
--message \
|
||||
"
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# make a root commit
|
||||
alias gcme="\
|
||||
gcme() {
|
||||
git \
|
||||
commit \
|
||||
--allow-empty \
|
||||
--allow-empty-message \
|
||||
--message \"\" \
|
||||
"
|
||||
|
||||
# commit the index and sign
|
||||
alias gcms="\
|
||||
git \
|
||||
commit \
|
||||
--gpg-sign \
|
||||
--message \
|
||||
"
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# switch to a branch or checkout file(s) from a commit
|
||||
gco() {
|
||||
|
|
Loading…
Reference in a new issue