0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

gitcloneした直後にファイルを編集してコミットしたら、fatal: not a git repository (or any of the parent directories): .gitが出た

Posted at

症状

新規フォルダを作り、その中にgit上にあるリポジトリをgitcloneした後、ファイルを編集コミットしたところエラーが発生しました

翻訳すると「致命的: Gitリポジトリ(または親ディレクトリのいずれにも該当しません): .git」でした

error
git add -a
fatal: not a git repository (or any of the parent directories): .git

解決方法

cloneしたフォルダ内に移動していないため、エラーになった模様(新規で作ったフォルダの階層でgitコマンドを打っていた

クローンしたフォルダに移動した後コミットしたら解決しました

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?