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
alias gcm="\
git \
commit \
--message \
"
gcm() {
git \
commit \
--message \
"${@}"
}
# redo the last commit with a different message
alias gcma="\
git \
commit \
--amend \
--message \
"
gcma() {
git \
commit \
--amend \
--message \
"${@}"
}
# make a root commit
alias gcme="\
git \
commit \
--allow-empty \
--allow-empty-message \
--message \"\" \
"
# commit the index and sign
alias gcms="\
git \
commit \
--gpg-sign \
--message \
"
gcme() {
git \
commit \
--allow-empty \
--allow-empty-message \
--message \
"${@}"
}
# switch to a branch or checkout file(s) from a commit
gco() {