删除git文件 [英] Remove git file
本文介绍了删除git文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行命令 git rm -f .git
.就是说
I am trying to run the command git rm -f .git
. It is saying
'.git'与任何文件都不匹配.
'.git' did not match any files.
我不记得它是否是确切的命令,但是显然有些问题了,我无法在网上找到想要的东西.我要解决的问题是删除 .git
文件.有人可以建议吗?
I can't recall if it is the exact command, but clearly something is off and I have been unable to find online what I'm looking for. The issue I am trying to resolve is delete the .git
file. Can anyone advise?
推荐答案
如果要实际删除 .git
文件夹,只需运行
If you want to actually delete the .git
folder, just run
rm -rf .git
我认为 git rm
不允许您删除 .git
文件夹,因为这是定义存储库本身的原因.
I don't think git rm
will allow you to delete the .git
folder, as that is what defines the repository itself.
这篇关于删除git文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文