git中 报错 fatal: not a git repository (or any of the parent directories): .git

Reason: The .git file is not included in the subdirectory level of the opened file.
Solution:

  1. The file level is wrong, nesting contains subfolders. You need to find the upper level directory that contains the .git file to operate.
  2. You can try the operation again after git init.

Guess you like

Origin blog.csdn.net/weixin_40599109/article/details/108449122