gcam,gcem

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

View file

@ -73,6 +73,25 @@ gbs() {
"${@}"
}
# redo the last commit with a different message
gcam() {
git \
commit \
--amend \
--message \
"${@}"
}
# make a root commit
gcem() {
git \
commit \
--allow-empty \
--allow-empty-message \
--message \
"${@}"
}
# clean untracked files
gcf() {
git \
@ -90,25 +109,6 @@ gcm() {
"${@}"
}
# redo the last commit with a different message
gcma() {
git \
commit \
--amend \
--message \
"${@}"
}
# make a root commit
gcme() {
git \
commit \
--allow-empty \
--allow-empty-message \
--message \
"${@}"
}
# switch to a branch or checkout file(s) from a commit
gco() {
git \