diff --git a/.config/bash/module/Git.sh b/.config/bash/module/Git.sh index 096c8ad..8d993cc 100644 --- a/.config/bash/module/Git.sh +++ b/.config/bash/module/Git.sh @@ -5,7 +5,11 @@ function gps() { # Git push all (branches). Useful for pushing all stuff to a new remote. function gpsa() { - git push "${1}" --tags "refs/remotes/origin/*:refs/heads/*" + local remotes=($(git remote)) + for remote in ${remotes[@]}; do + echo -n "${remote}: " + git push "${remote}" --tags "refs/remotes/origin/*:refs/heads/*" + done } # Git force push.