Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active December 12, 2019 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/914ea6b372518d73bfaca9e1747d5c96 to your computer and use it in GitHub Desktop.
Save donchan922/914ea6b372518d73bfaca9e1747d5c96 to your computer and use it in GitHub Desktop.
# 事前に新しいリポジトリをGitHubで作成しておく
# 古いリポジトリをクローンする
$ git clone https://github.com/xxx/old-repository.git
$ cd old-repository
# 古いリポジトリのGitの更新情報を削除する
$ rm -rf .git
# 新しいリポジトリを新規作成する
$ git init
$ git add .
$ git commit -m "Initial commit"
$ git remote add origin https://github.com/xxx/new-repository.git
$ git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment