This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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'); |