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

投稿日: 2018年03月11月 更新日: 2018年03月11月

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

参考:

名前:宮内 はじめ

Code for Nagoya名誉代表

E2D3名古屋支部長

プログラマーです。GISやデータビズが好きです。このサイトは宮内の個人的なメモです。

プロフィール

お問い合わせ