scripts/archive-repo

11 lines
233 B
Plaintext
Executable File

#/bin/bash
ORG=$1
REPO=$2
REPOSITORY="$1/$2"
BRANCH=master
git checkout --orphan $REPO
git remote add -f $REPO git@github.com:$ORG/$REPO.git
git reset --hard $REPO/$BRANCH
git remote rm $REPO
git push origin $REPO
git checkout master