6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

既存のgit repoで間違えて`git init`してしまった時の対処法

Posted at

間違えて違うディレクトリでgit initしちゃって

Reinitialized existing Git repository in /hogehoge

とか出てきて「やっちゃった!?」という時の対処法

対策

何もしなくてOK.

Running git init in an existing repository is safe.
だそうです。 安全。

参考

How to undo misoperation of Reinitialized existing Git repository - Stack Overflow http://stackoverflow.com/questions/19397888/how-to-undo-misoperation-of-reinitialized-existing-git-repository

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?