Skip to content

Instantly share code, notes, and snippets.

@felipem775
Created February 12, 2018 13:39
Show Gist options
  • Select an option

  • Save felipem775/49daa27fdab6f6ae92e00f534eaa66d0 to your computer and use it in GitHub Desktop.

Select an option

Save felipem775/49daa27fdab6f6ae92e00f534eaa66d0 to your computer and use it in GitHub Desktop.
#!/bin/bash
export SCRIPT_PATH="`dirname \"$0\"`"
echo $SCRIPT_PATH
cd $SCRIPT_PATH
for DIR in */ ;
do
echo $DIR
cd $DIR
git remote update
cd $SCRIPT_PATH
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment