Import

Buddy allows you to import your web sites and repositories in a couple of clicks. Create a new project, select Buddy as the Git provider, and choose an import option from the right column:

Import options for Buddy Git hosting

  1. ZIP archive - files that haven’t been under version control, packed into a .zip, .tgz, tar.gz or tar.bz2 archive. Buddy will reproduce the files and directories structure, so make sure that you don’t use unnecessary directories

  2. GitHub - upon authorization, you’ll be able to import your private GitHub repositories

  3. Bitbucket - upon authorization, you’ll be able to import your private Bitbucket repositories

  4. External Git repository - select this option if the repo is hosted on a private server. If you have a custom private repository and would like to import it to Buddy, create a new project, select Buddy as the provider and run the following commands in the terminal:

    git clone --bare CUSTOM_REPO_URL
    cd repo.git
    git remote add buddy BUDDY_REPO_URL
    git push buddy --mirror

CUSTOM_REPO_URL stands for the URL to the repository that you want to import, and BUDDY_REPO_URL is the URL to the newly created Buddy repository.

Once the import has finished, the contents of your repository will become available in the Code tab.