diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 88188c2..ce073a0 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -31,42 +31,47 @@ gap() { } # create a branch -alias gb="\ -git \ -branch \ -" +gb() { + git \ + branch \ + "${@}" +} # delete a branch -alias gbd="\ -git \ -branch \ ---delete \ -" +gbd() { + git \ + branch \ + --delete \ + "${@}" +} # force a branch deletion -alias gbdf="\ -git \ -branch \ ---delete \ ---force \ -" +gbdf() { + git \ + branch \ + --delete \ + --force \ + "${@}" +} # list branches -alias gbl="\ -git \ -branch \ ---all \ ---list \ ---verbose \ ---verbose \ -" +gbl() { + git \ + branch \ + --all \ + --list \ + --verbose \ + --verbose \ + "${@}" +} # set the link to a remote branch from a local branch -alias gbsu="\ -git \ -branch \ ---set-upstream-to \ -" +gbs() { + git \ + branch \ + --set-upstream-to \ + "${@}" +} # clone a remote repository alias gc="\