summaryrefslogtreecommitdiffstats
path: root/git-push-all
blob: cf90de904abf3dfa0e87cc9f7190d101c2f4d820 (plain)
1
2
3
4
5
6
7
8
#! /bin/bash
#
opts=${1:-"--all"}
echo -e "\033[0;31mgit repack\033[0m"
git gc --prune --aggressive
for host in $(git remote); do
    echo -e "\033[0;35mpush to \033[0;31m$host \033[0;36m$opts\033[0m" && git push $opts $host
done