Skip to content

Instantly share code, notes, and snippets.

@onokatio
Last active February 11, 2018 01:13
Show Gist options
  • Save onokatio/eb675a4b501b060bd41136c101209c10 to your computer and use it in GitHub Desktop.
Save onokatio/eb675a4b501b060bd41136c101209c10 to your computer and use it in GitHub Desktop.
公開リポジトリをフォークして非公開リポジトリにする ref: https://qiita.com/onokatio/items/1a962c99fde76f6778b4
$ git clone --bare https://github.com/hoge/hoge
$ cd hoge.git
$ git lfs fetch --all
$ cd ../
$ cd hoge.git
$ git push --mirror [email protected]:myname/myrepo
$ git lfs push --all [email protected]:myname/myrepo #git lfsを使用している場合のみ
$ cd ../
$ rm -rf hoge.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment