Skip to content

Instantly share code, notes, and snippets.

@w4
Created July 13, 2020 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w4/6e120f59ac09b8192cf6ffe4c11eac5f to your computer and use it in GitHub Desktop.
Save w4/6e120f59ac09b8192cf6ffe4c11eac5f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
CURR_DIR="$(pwd)"
for dir in /share/git/pub/*; do
cd "$dir"
RET=$(git remote get-url github+w4 > /dev/null; echo $?)
if [[ $RET -ne 0 ]]; then
echo "not in git: $dir"
continue
fi
echo "$dir:"
git push --all --follow-tags github+w4
done
cd "$pwd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment