gpt4 book ai didi

windows - 无法完全删除 git 存储库

转载 作者:可可西里 更新时间:2023-11-01 13:28:05 25 4
gpt4 key购买 nike

我一直在 windows-msysgit 上使用 git。每当我尝试使用资源管理器或使用

完全删除存储库时
$ git rm -rf ptp/
fatal: Not a git repository (or any of the parent directories): .git

它会出错“重解析点缓冲区中存在的数据无效”或上面的 fatal error 。

我/git怎么了?

提前致谢

最佳答案

要删除 git 存储库,只需执行 rm -rf ptp/。而已。git rm 用于从索引 [更改/新文件的暂存区] 中移动项目,而不是删除 git 存储库。

关于windows - 无法完全删除 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2384057/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com