我用git add file添加文件时出现了这样错误:

fatal: Not a git repository (or any of the parent directories): .git

提示说没有.git这样一个目录,解决办法如下:

git init就可以了!

也就是说,在命令行敲入git init回车之后,再重新执行添加文件的命令即可。

然后执行一下git status查看状态信息。

Git错误:fatal: Not a git repository (or any of the parent directories)解决方法相关推荐

  1. 关于 麒麟系统开发错误“fatal error: GL/gl.h: No such file or directory“ 的解决方法

    若该文为原创文章,转载请注明原文出处 本文章博客地址:https://hpzwl.blog.csdn.net/article/details/125149955 红胖子(红模仿)的博文大全:开发技术集 ...

  2. 解决:fatal: not a git repository (or any of the parent directories): .git的问题

    解决:fatal: not a git repository (or any of the parent directories): .git的问题 提示说没有.git这样一个目录 解决办法: 在命令 ...

  3. Git 小问题:fatal: not a git repository (or any of the parent directories): .git

    超详细 Git 图文版小白教程(持续更新) 在clone仓库到本地后,执行命令提示:fatal: not a git repository (or any of the parent director ...

  4. 【Git】fatal Not a git repository or any of the parent direc

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 登陆gi ...

  5. git错误'fatal: cannot do a partial commit during a merge'

    我们公司管理代码用的Git分布式版本控制系统,最近合并分支遇到这个问题,记录下来. 先说下我这个错误产生的步骤.(假设我的分支名是PC,主分支是master) 我开分支的原因是需要回滚到master几 ...

  6. ‘git’ 不是内部或外部命令,也不是可运行的程序或批处理文件;fatal: not a git repository (or any of the parent directories): .git

    一.'git' 不是内部或外部命令,也不是可运行的程序或批处理文件. cmd 里面运行git提示"不是内部或外部命令,也不是可运行的程序或批处理文件" 打开网址https://gi ...

  7. Pixhawk---fatal: Not a git repository (or any of the parent directories)

      当从github.com上面下载下了Firmware后,无意中删除了Firmware目录下的.git文件夹,再去编译就会出现:   fatal: Not a git repository (or ...

  8. Git: remote: aborting due to possible repository corruption on the remote side. 的解决办法

    问题概述 关于这个问题,博主是在项目开发过程中遇到的,写完一个功能模块后,在拉取更新提交代码时异常, 报:" Git: remote: aborting due to possible re ...

  9. 错误:“Cannot load JDBC driver class ‘com.mysql.jdbc.Driver”的解决方法

    错误:"Cannot load JDBC driver class 'com.mysql.jdbc.Driver"的解决方法 参考文章: (1)错误:"Cannot lo ...

最新文章

  1. c++ 回调函数与std::function使用实例
  2. 编写下载服务器。 第四部分:有效地实现HEAD操作
  3. tsp matlab,五个城市的TSP问题MATLAB程序.doc
  4. 2018.3.12 Leecode习题 给定一个整数数列,找出其中和为特定值的那两个数。
  5. c#.net利用RNGCryptoServiceProvider产生任意范围强随机数的办法
  6. 观察者模式实际应用:监听线程,意外退出线程后自动重启
  7. 深度报告:移动边缘计算,站在5G“中央”
  8. Unity接入谷歌支付
  9. teamviewer 11 linux,安装Teamviewer的问题
  10. 如何打开损坏的PDF文件查看内容并修复
  11. 使用Excel条件格式-重复值
  12. 【互联网那些事】到底什么是互联网思维
  13. 成都中医药大学计算机基础试题,成都中医药大学2016年春季学期期末考试计算机基础-成教()解剖.doc...
  14. C++扬帆远航——4(百钱百鸡)
  15. Docker 镜像管理
  16. 【机房收费系统】之结账
  17. Pytorch 学习(7):Pytorch中的Non-linear Activations (非线性层)实现
  18. 纯干货!Dockerfile常用指令清单
  19. 移动OA系统,联动企业协作让办公高效无间断
  20. PCB电路板上各种标志的含义

热门文章

  1. 2021年春季学期-信号与系统-第十三次作业参考答案
  2. 蒙特卡洛树搜索_蒙特卡洛树是什么算法?
  3. linux配置永久网管,企业Linux网管配置
  4. xilinx windows 下烧录脚本 稳定性超好
  5. python3 UDP TCP 调试回射命令行
  6. jdbc连接mysql驱动方式_JDBC连接数据库系列教程 – JDBC注册驱动的常见方式
  7. python简述题_python的一些基本概念知识和面试题
  8. 如何查询高考成绩2021年的成绩排位,2021年四川高考个人排名怎么查询,四川高考成绩排名查询方法...
  9. php 插入2个数组,用PHP将2个数组插入mysql
  10. HDLBits 系列(12)All about Karnaugh Map