Skip to content

Instantly share code, notes, and snippets.

@nmrshll
Created January 31, 2017 16:20
Show Gist options
  • Save nmrshll/a5023a3d2414ecd21f215ab9a7f5f18b to your computer and use it in GitHub Desktop.
Save nmrshll/a5023a3d2414ecd21f215ab9a7f5f18b to your computer and use it in GitHub Desktop.
for dir in *
do
DIR=${dir} sh -c 'cd ${DIR}; git remote remove origin; git remote add origin git@bitbucket.org:n-marshall/companyname-${DIR}.git; git push -u origin master'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment