git 报错 destination path already exists and is not empty director

编程入门 行业动态 更新时间:2024-10-28 04:19:41

git 报错 destination path already exists and is not empty director

既然报错 必然存在报错的机制

报错机制

桌面上创建任意文件夹

拉取任意 git 项目

再执行一次

报错出现了

存在同名目录时将会报错

注意 重点来了

文件夹为空为啥也报错了

解决方案



把 隐藏的项目给勾上

你就会发现居然存在一个名叫 test 的隐藏文件夹

改名

拉取项目

就不报错啦

所以报错的根本原因就是存在同名的文件目录

更多推荐

git 报错 destination path already exists and is not empty director

本文发布于:2023-06-14 03:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1432313.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   destination   git   path   director

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!