首次使用git命令报这个错:
fatal: not a git repository (or any of the parent directories): .git
分析:
错误提示没有git存储库(或任何父目录):.git
解决方案:

  1. 执行git --help
    fatal: not a git repository (or any of the parent directories): .git
    -init 参数的意思
    Create an empty Git repository or reinitialize an existing one(创建一个空的Git存储库或重新初始化一个现有的存储库)
  2. 执行 git init

问题解决!!!!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-09-30
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2021-05-25
  • 2021-06-03
  • 2021-08-07
相关资源
相似解决方案