Git 报错:fatal: destination path ‘.‘ already exists and is not an empty directory.
目录
问题
解决
方法一、删除 .git 文件
方法二、新建目录
问题
今天执行 git clone 命令时遇到如下报错信息:
fatal: destination path '.' already exists and is not an empty directory.
解决
方法一、删除 .git 文件
正如报错信息所说的,当前目录已经存在了 git 工程,可以先执行如下命令:
rm -rf .git
再执行命令:
git clone https://git.data-mining.com/007/996.git
如果担心上述行为会影响本机现有的工程结构,可以尝试如下方法。
方法二、新建目录
熟悉 linux 命令都知道 rm -rf .git 命令会删除当前目录的 git 记录,如果没有把握的话,最好还是新建一个目录,比如 liuzhen007 目录,命令如下:
mkdir liuzhen007
cd liuzhen007
再执行工程 clone 命令,对应的命令如下:
git clone https://git.data-mining.com/007/996.git
作者简介:大家好
Git 报错:fatal: destination path ‘.‘ already exists and is not an empty directory.相关推荐
- gitee clone时报错:fatal: destination path ‘***‘ already exists and is not an empty directory.
destination path '***' already exists and is not an empty directory. 这个一般出现于git clone URL时候,意思是桌面上已 ...
- fatal: destination path '.' already exists and is not an empty directory. 错误及解决办法
今天在使用Git for Windows clone代码时,遇到了题目所示的错误,简单来说就是目标路径'.'已经存在并且不是一个空目录. 可是在我在文件夹下并没有看到任何文件,显示"该文件夹 ...
- git报错”fatal: unable to access ‘https://github.com/defnull/bottle/‘: Empty reply from server“
问题: fatal: unable to access 'https://github.com/defnull/bottle/': Empty reply from server 解决办法: 将原命令 ...
- Jenkins部署项目时,git报错fatal: index file smaller than expected
@Jenkins部署项目时,git报错fatal: index file smaller than expectedTOC 最近在学习部署Jenkins时,微服务构建一直报错: Caused by: ...
- git报错 fatal: unsafe repository
因为电脑格式化后,重装了git,操作时然后遇到了之前没有遇到的问题! 比如git报错 fatal: unsafe repository 刚开始以为是路径出错,百度后才知道是之前版本漏洞被修复了 解决方 ...
- git报错 fatal: unsafe repository解决方法
git报错 fatal: unsafe repository xxx is owned by someone else 因为git进行了版本升级,添加了新的目录安全限制.会造成在进行git常规操作或 ...
- 解决git报错fatal: Authentication failed for ‘http://10.10.208.29/root/xmh.git/‘
今天准备在git push代码的时候,突然报错fatal: Authentication failed for 'http://10.10.208.29/root/xmh.git/' 然后尝试了git ...
- Git报错:fatal: Authentication failed for ‘https://gitee.com/.......‘
提交代码到码云,Git报错如下: Gavin: Incorrect username or password (access token) fatal: Authentication failed f ...
- git报错fatal: HTTP request failed
关于git报错的原因,见下链接 此链接为转载: https://blog.csdn.net/zhang_danf/article/details/45538825 我遇到是curl 版本问题,更新cu ...
最新文章
- JAVA学习笔记--4.多线程编程 part1.背景知识和内存模型
- 查看程序占用内存_电脑内存不足怎么办
- Android Kotlin Flow 如何使用callbackflow
- sdut 数据结构实验之排序三:bucket sort
- 网络盘的计算机密码是什么情况,电脑e盘拒绝访问是什么原因?e盘加密方法
- 关注电子商务网站开发-《网站中常用的Jquery插件》
- Python pyserial 串口开发
- python狗狗年龄换算程序_1分钟检测狗狗是否老了,还有狗年龄换算表,快看你家狗的情况...
- Oracle数据库使用教程
- fxp连接失败_用FLASHFXP连接站点,总显示连接失败(连接丢失),该怎么办呢
- 2021医学影像分割论文:MSGSE-Net:用于皮层下脑结构分割的多尺度引导压缩和提取网络
- 旷视科技1面2面----最差的一次面试体验
- Win10系统下如何修改电脑名称?windows10更改电脑名称的方法
- 9. python 入门教程快速复习,序列,数值类型,字符串方法,列表、集合、字典方法,文件操作,解析式
- New情报:APT28,TA505 黑产组织,VenusLocker Ransomware组织,ROKRAT远控
- Android项目解耦--路由框架ARouter的使用
- linux下安装MySQL遇到的坑
- 目前大数据分析的发展状况是怎样
- leetcode初级———旋转数组的多种算法总结
- java freemind_java环境变量的应用:为Freemind配置Java环境
热门文章
- Unity3D代码混淆
- 美光科技:非挥发性存储器及快闪存储器才是归宿
- Clickhouse 时区
- 武汉 华为 android,【武汉华为手机大全】武汉华为手机报价及图片大全-列表版-ZOL中关村在线...
- XSS和CSRF两种跨站攻击比较
- 开关电源补偿环路设计(1):基础部分-以Buck 为例
- 概念肆虐:凭什么让“IPv9”横行无忌?
- DZ插件制作简易入门教程(自学手记)第二篇
- APP被网信办点名下架还能重新上架吗?恢复上架流程请收好
- 替代 Elasticsearch,TDengine 助力四维图新将存储空间利用率提升 8 倍