Last active
December 12, 2019 12:39
-
-
Save donchan922/914ea6b372518d73bfaca9e1747d5c96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 事前に新しいリポジトリを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