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