简体   繁体   English

从GitHub删除文件夹

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM