Skip to content

Instantly share code, notes, and snippets.

package main
import (
"cloud.google.com/go/datastore"
"fmt"
"golang.org/x/net/context"
"log"
"net/http"
"os"
"time"
@ericlevine
ericlevine / migrate_repo.rb
Last active August 29, 2015 13:56
GitHub to GitHub repository migration script
require "json"
require "typhoeus"
require "pp"
# MigrateRepo usage instructions:
#
# The way this is used at Airbnb for migrating from GitHub to GHE is by
# creating a separate organization with no members called "migration",
# adding that as the target organization, and then once the migration
# has finished, moving it over to the intended location.