Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created November 22, 2016 14:28
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 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
GIT_REMOTE_PREFIX=git@github.com:$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