Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created November 22, 2016 14:28
Show Gist options
  • Save stbenjam/f3e175f5cd7ae6f4aa8a4359d01fb402 to your computer and use it in GitHub Desktop.
Save stbenjam/f3e175f5cd7ae6f4aa8a4359d01fb402 to your computer and use it in GitHub Desktop.
#!/bin/bash
[email protected]:$USERNAME
for i in modules/*
do
pushd $PWD
cd $i
git remote add user $GIT_REMOTE_PREFIX/`basename $PWD`
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment