·

GitリポジトリをGitHubに移行する

VPS上に構築したGitリポジトリをGitHubに移行したのでメモ。ほぼ参考サイトまま。

$ git clone --mirror ssh://username@example.com/hoge/repo.git
$ cd repo.git
$ git remote add --mirror=push github ssh://git@github.com/username/repo.git
$ git push github

参考: