Browse Source

bin:gr: add helper to for r in `git remote`; do ...

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 10 years ago
parent
commit
9de2b56fa6
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      files/bin/gr

+ 15
- 0
files/bin/gr

@ -0,0 +1,15 @@
#!/bin/sh
if [ $# -eq 0 ]; then
cat >&2 <<-EOT
Usage: $0 <args...>
runs <args...> over every remote
EOT
exit 2
fi
for r in $(git remote); do
echo "== $r"
git remote "$r" "$@"
done

Loading…
Cancel
Save