diff --git a/shell/alias/git.sh b/shell/alias/git.sh index fdcbffc..88188c2 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -13,12 +13,22 @@ gaa() { "${@}" } +# add parts of all to index +gaap() { + git \ + add \ + --all \ + --patch \ + "${@}" +} + # add parts to index -alias gap="\ -git \ -add \ ---patch \ -" +gap() { + git \ + add \ + --patch \ + "${@}" +} # create a branch alias gb="\