Skip to content

Instantly share code, notes, and snippets.

@michaelknurr
Created September 14, 2018 12:45
Show Gist options
  • Save michaelknurr/80101241ff24e72e836a3452c273824c to your computer and use it in GitHub Desktop.
Save michaelknurr/80101241ff24e72e836a3452c273824c to your computer and use it in GitHub Desktop.
#!/bin/sh
if [ $# != 1 ] ; then
echo "Usage $0 <repo>"
exit 1;
fi
REPO=$1
git clone --mirror https://github.com/adessoAnsible/$REPO.git
cd $REPO.git
git remote set-url origin https://git.adesso.ch/ansible/$REPO.git
git push --mirror https://git.adesso.ch/ansible/$REPO.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment