This commit is contained in:
Marc Beninca 2024-11-17 14:20:55 +01:00
parent 941adedaba
commit 33a638dbef
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -351,163 +351,184 @@ git_merge_commit() {
gmc() { git_merge_commit "${@}"; } gmc() { git_merge_commit "${@}"; }
# squash a branch and index its modifications # squash a branch and index its modifications
gms() { git_merge_squash() {
git \ git \
merge \ merge \
--squash \ --squash \
"${@}" "${@}"
} }
gms() { git_merge_squash "${@}"; }
# merge via external tool # merge via external tool
gmt() { git_merge_tool() {
git \ git \
mergetool \ mergetool \
"${@}" "${@}"
} }
gmt() { git_merge_tool "${@}"; }
# push to the remote repository # push to the remote repository
gp() { git_push() {
git \ git \
push \ push \
--tags \ --tags \
--verbose \ --verbose \
"${@}" "${@}"
} }
gp() { git_push "${@}"; }
# delete from the remote repository # delete from the remote repository
gpd() { git_push_delete() {
git \ git \
push \ push \
--delete \ --delete \
"${@}" "${@}"
} }
gpd() { git_push_delete "${@}"; }
# force the push to the remote repository # force the push to the remote repository
gpf() { git_push_force() {
gp \ gp \
--force \ --force \
"${@}" "${@}"
} }
gpf() { git_push_force "${@}"; }
# rebase current branch onto another # rebase current branch onto another
grb() { git_re_base() {
git \ git \
rebase \ rebase \
"${@}" "${@}"
} }
grb() { git_re_base "${@}"; }
# abort current rebase # abort current rebase
grba() { git_re_base_abort() {
git \ git \
rebase \ rebase \
--abort \ --abort \
"${@}" "${@}"
} }
grba() { git_re_base_abort "${@}"; }
# continue current rebase # continue current rebase
grbc() { git_re_base_continue() {
git \ git \
rebase \ rebase \
--continue \ --continue \
"${@}" "${@}"
} }
grbc() { git_re_base_continue "${@}"; }
# force rebase without fast-forward # force rebase without fast-forward
grbf() { git_re_base_force() {
git \ git \
rebase \ rebase \
--force-rebase \ --force-rebase \
"${@}" "${@}"
} }
grbf() { git_re_base_force "${@}"; }
# rebase interactively # rebase interactively
grbi() { git_re_base_interactive() {
git \ git \
rebase \ rebase \
--interactive \ --interactive \
"${@}" "${@}"
} }
grbi() { git_re_base_interactive "${@}"; }
# remove and add removal to index # remove and add removal to index
grm() { git_re_move() {
git \ git \
rm \ rm \
"${@}" "${@}"
} }
grm() { git_re_move "${@}"; }
# add a new remote repository # add a new remote repository
grma() { git_re_mote_add() {
git \ git \
remote \ remote \
add \ add \
"${@}" "${@}"
} }
grma() { git_re_mote_add "${@}"; }
# list remote repositories # list remote repositories
grml() { git_re_mote_list() {
git \ git \
remote \ remote \
--verbose \ --verbose \
"${@}" "${@}"
} }
grml() { git_re_mote_list "${@}"; }
# show connection to a remote repository # show connection to a remote repository
grms() { git_re_mote_show() {
git \ git \
remote \ remote \
show \ show \
"${@}" "${@}"
} }
grms() { git_re_mote_show "${@}"; }
# set the location of a remote repository # set the location of a remote repository
grmsu() { git_re_mote_set_upstream() {
git \ git \
remote \ remote \
set-url \ set-url \
"${@}" "${@}"
} }
grmsu() { git_re_mote_set_upstream "${@}"; }
# remove file(s) from index or move current branch pointer # remove file(s) from index or move current branch pointer
grs() { git_re_set() {
git \ git \
reset \ reset \
"${@}" "${@}"
} }
grs() { git_re_set "${@}"; }
# wipe modifications or reset current branch to another commit # wipe modifications or reset current branch to another commit
grsh() { git_re_set_hard() {
git \ git \
reset \ reset \
--hard \ --hard \
"${@}" "${@}"
} }
grsh() { git_re_set_hard "${@}"; }
# current state of repository # current state of repository
gs() { git_status() {
git \ git \
status \ status \
--untracked-files="all" \ --untracked-files="all" \
"${@}" "${@}"
} }
gs() { git_status "${@}"; }
# show a commit # show a commit
gsc() { git_show_commit() {
git \ git \
show \ show \
"${@}" "${@}"
} }
gsc() { git_show_commit "${@}"; }
# tag a commit # tag a commit
gt() { git_tag() {
git \ git \
tag \ tag \
"${@}" "${@}"
} }
gt() { git_tag "${@}"; }
# delete a tag # delete a tag
gtd() { git_tag_delete() {
git \ git \
tag \ tag \
--delete \ --delete \
"${@}" "${@}"
} }
gtd() { git_tag_delete "${@}"; }