Skip to content

Instantly share code, notes, and snippets.

<?php
//1 Setting up application
$application = new \TYPO3\Surf\Application\BaseApplication('NameOfYourApp');
$application->setDeploymentPath('/var/www/NameOfYourApp');
$application->setOption('packageMethod', 'git');
$application->setOption('repositoryUrl', 'git@bitbucket.org:NameOfYourTeam/NameOfYourApp.git');
$application->setOption('branch', 'master');
$application->setOption('keepReleases', '5');
$application->setOption('transferMethod', 'rsync');
@derhollaender
derhollaender / bulk-transfer-repos.py
Last active March 19, 2023 11:31 — forked from marcelkornblum/bulk-transfer-repos.py
Simple Python script to rip everything from BitBucket across to Github with minimal interaction
# heavily inspired by https://gist.github.com/rbellamy/3c5033ba605a090824e8
# gets everything from bitbucket and brings it across to GH, adding LFS where necessary for file size
# then archives everything brought over
#
# runs on Python 3; does clone --mirror and push --mirror, cleaning up after itself
#
# you need git-lfs installed on the local system
# also make sure you've got git credential caching set up https://help.github.com/articles/caching-your-github-password-in-git/
#
# this fork was made to support the script for moving repos from a bitbucket account to a github user account that does NOT belong to an organisation.