git clone --bare [email protected]:jonlong/<repo>.git
tar -czf <repo>.git.tar.gz <repo>.git
Create a new private repository on the target account:
curl -F 'login=<user>' -F 'token=<token>' -F 'name=jonlong/<repo>' -F 'public=0' http://github.com/api/v2/json/repos/create
Extract the archived repository:
tar -xvzf <repo>.tar.gz
Navigate to the bare repository:
cd <repo>.git
Push the repository to GitHub
git push --mirror [email protected]:jonlong/<repo>.git