This commit is contained in:
Marc Beninca 2024-11-17 17:05:44 +01:00
parent cfd529a5d8
commit 975382a359
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -82,46 +82,6 @@ git_branch_set_upstream() {
"${@}"
}
# clean untracked files
gcf() { git_clean_force "${@}"; }
git_clean_force() {
git \
clean \
-d \
--force \
"${@}"
}
# redo the last commit with a different message
gcam() { git_commit_amend_message "${@}"; }
git_commit_amend_message() {
git \
commit \
--amend \
--message \
"${@}"
}
# make a root commit
gcem() { git_commit_empty_message "${@}"; }
git_commit_empty_message() {
git \
commit \
--allow-empty \
--allow-empty-message \
--message \
"${@}"
}
# commit the index
gcm() { git_commit_message "${@}"; }
git_commit_message() {
git \
commit \
--message \
"${@}"
}
# switch to a branch or checkout file(s) from a commit
gc() { git_checkout "${@}"; }
git_checkout() {
@ -165,6 +125,46 @@ git_cherry_pick_continue() {
"${@}"
}
# clean untracked files
gcf() { git_clean_force "${@}"; }
git_clean_force() {
git \
clean \
-d \
--force \
"${@}"
}
# redo the last commit with a different message
gcam() { git_commit_amend_message "${@}"; }
git_commit_amend_message() {
git \
commit \
--amend \
--message \
"${@}"
}
# make a root commit
gcem() { git_commit_empty_message "${@}"; }
git_commit_empty_message() {
git \
commit \
--allow-empty \
--allow-empty-message \
--message \
"${@}"
}
# commit the index
gcm() { git_commit_message "${@}"; }
git_commit_message() {
git \
commit \
--message \
"${@}"
}
# configure the user email
gcue() { git_config_user_email "${@}"; }
git_config_user_email() {