Created
July 13, 2020 19:06
-
-
Save w4/6e120f59ac09b8192cf6ffe4c11eac5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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