1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-27 22:22:53 +00:00
scripts/archive-repo

11 lines
233 B
Plaintext
Raw Normal View History

2019-03-28 06:25:28 +00:00
#/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