This commit is contained in:
Marc Beninca 2024-11-17 03:07:23 +01:00
parent 033999e9f6
commit 7e788e5940
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -83,36 +83,31 @@ gcf() {
} }
# commit the index # commit the index
alias gcm="\ gcm() {
git \ git \
commit \ commit \
--message \ --message \
" "${@}"
}
# redo the last commit with a different message # redo the last commit with a different message
alias gcma="\ gcma() {
git \ git \
commit \ commit \
--amend \ --amend \
--message \ --message \
" "${@}"
}
# make a root commit # make a root commit
alias gcme="\ gcme() {
git \ git \
commit \ commit \
--allow-empty \ --allow-empty \
--allow-empty-message \ --allow-empty-message \
--message \"\" \
"
# commit the index and sign
alias gcms="\
git \
commit \
--gpg-sign \
--message \ --message \
" "${@}"
}
# switch to a branch or checkout file(s) from a commit # switch to a branch or checkout file(s) from a commit
gco() { gco() {