[英]Deleting a folder from GitHub
I'm trying to delete the folder mapeditor
from my Java engine on GitHub here (https://github.com/UrbanTwitch/Mystik-RPG) 我正在尝试从GitHub上的Java引擎中删除文件夹
mapeditor
(https://github.com/UrbanTwitch/Mystik-RPG)
I'm on Git Bash.. messing around with rm
and -rf
but I can't seem to do it. 我在Git Bash上..和
rm
和-rf
在一起,但我似乎做不到。 How do I remove mapeditor
folder from Mystik-RPG
completely? 如何从
Mystik-RPG
完全删除mapeditor
文件夹?
Thanks. 谢谢。
从Mystik-RPG
文件夹:
git rm -rf mapeditor
You need to git rm
the folder, then git commit
the removal. 您需要
git rm
文件夹,然后git commit
删除。 Finally, git push
your new commit to github. 最后,
git push
您的新提交git push
送到github。
Just deleting the folder won't tell git you wish to have it removed - that would put it into the "tracked but missing" state. 只是删除文件夹不会告诉git您希望将其删除-这会使它进入“已跟踪但丢失”状态。 You want it to transition to the "untracked" state, which is what
git rm
is for. 您希望它转换为
git rm
的“未跟踪”状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.