Skip to content

Instantly share code, notes, and snippets.

@crwolff crwolff/Cloning Tomato.md

Last active Feb 17, 2018
Embed
What would you like to do?
Tomato import instructions

Tomato import instructions

Get latest bundle from http://repo.or.cz/tomato.git/bundles

wget http://repo.or.cz/tomato.git/tomato-29fc6413.bundle

Import bundle into bare repository

git clone --mirror tomato-29fc6413.bundle tomato.git
cd tomato.git
git remote set-url origin http://repo.or.cz/tomato.git
git fetch --prune origin
git remote set-head origin --auto
cd ..

Make a copy for updating

cp -r tomato.git tomato_cln.git

Use BFG Repo-Cleaner to remove illegal files

java -jar ../Downloads/bfg-1.13.0.jar --strip-blobs-bigger-than 50M tomato_cln.git
cd tomato_cln.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive

Add new origin for github repository and push

git remote add new-origin git@github.com:crwolff/tomato.git
git push --all new-origin

Updating

cd tomato.git
git fetch --prune origin
cd ..
cp -r tomato.git tomato_cln.git
java -jar ../Downloads/bfg-1.13.0.jar --strip-blobs-bigger-than 50M tomato_cln.git
cd tomato_cln.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git remote add new-origin git@github.com:crwolff/tomato.git
git push --all new-origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.