-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法删除仓库 #66
Comments
刚好也遇到这种问题,但是我在网上查找到的资料说git rm --cached这个命令是用来删除文件的,git rm -r --cached是用来删除文件夹的,似乎不是仓库…… git删除已经add的文件的两种方法: |
$ git rm --cached -f 2024InToD |
2024InToD的文件夹内部还有一个.git目录吗?如果想保留它的内容,但是不是想以git仓库的形式留下来,就要删除它内部的.git目录。应该是“rm -rf 2024InToD/.git”。如果完全不需要它了也可以从文件系统中直接删除文件夹 |
解决了,后来是删掉了github上面的仓库,然后从最里面一层.git开始往外层删除,没有嵌套的话也可以不用命令行。 |
命令git rm --cached 2024InToD
报错:error: the following file has staged content different from both the
file and the HEAD:
2024InToD
(use -f to force removal)
也无法直接删除仓库对应的本地文件
The text was updated successfully, but these errors were encountered: