test
test

Reputation: 18198

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)

I'm on Git Bash.. messing around with rm and -rfbut I can't seem to do it. How do I remove mapeditor folder from Mystik-RPG completely?

Thanks.

Upvotes: 1

Views: 13286

Answers (2)

fourk
fourk

Reputation: 2272

From the Mystik-RPG folder:

git rm -rf mapeditor

Upvotes: 9

Borealid
Borealid

Reputation: 98509

You need to git rm the folder, then git commit the removal. Finally, git push your new commit to 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. You want it to transition to the "untracked" state, which is what git rm is for.

Upvotes: 4

Related Questions