This commit is contained in:
Marc Beninca 2024-11-17 14:03:22 +01:00
parent 03d4f4289c
commit d24113e1b0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,61 +1,68 @@
# add to index # add to index
ga() { git_add() {
git \ git \
add \ add \
"${@}" "${@}"
} }
ga() { git_add "${@}"; }
# add all to index # add all to index
gaa() { git_add_all() {
git \ git \
add \ add \
--all \ --all \
"${@}" "${@}"
} }
gaa() { git_add_all "${@}"; }
# add parts of all to index # add parts of all to index
gaap() { git_add_all_patch() {
git \ git \
add \ add \
--all \ --all \
--patch \ --patch \
"${@}" "${@}"
} }
gaap() { git_add_all_patch "${@}"; }
# add parts to index # add parts to index
gap() { git_add_patch() {
git \ git \
add \ add \
--patch \ --patch \
"${@}" "${@}"
} }
gap() { git_add_patch "${@}"; }
# create a branch # create a branch
gb() { git_branch() {
git \ git \
branch \ branch \
"${@}" "${@}"
} }
gb() { git_branch "${@}"; }
# delete a branch # delete a branch
gbd() { git_branch_delete() {
git \ git \
branch \ branch \
--delete \ --delete \
"${@}" "${@}"
} }
gbd() { git_branch_delete "${@}"; }
# force a branch deletion # force a branch deletion
gbdf() { git_branch_delete_force() {
git \ git \
branch \ branch \
--delete \ --delete \
--force \ --force \
"${@}" "${@}"
} }
gbdf() { git_branch_delete_force "${@}"; }
# list branches # list branches
gbl() { git_branch_list() {
git \ git \
branch \ branch \
--all \ --all \
@ -64,6 +71,7 @@ gbl() {
--verbose \ --verbose \
"${@}" "${@}"
} }
gbl() { git_branch_list "${@}"; }
# set the link to a remote branch from a local branch # set the link to a remote branch from a local branch
git_branch_set_upstream() { git_branch_set_upstream() {