removing folders from git

Hi,

I have a simple question. I deleted a folder locally then pushed to github repository, but folder is still in github rep, although deleted from my local storage.

How should I completely remove folders using git and PyCharm?
1 comment
Comment actions Permalink
You must have deleted the folder outside of git or PyCharm. Try this: select the project root in the Project window. Go to VCS menu -> Git -> Revert. It should show the deleted folder. Select it and hit revert. The deleted folder should be recreated. Now if you delete it through PyCharm (or via 'git rm') it should be removed from the git repo after you push. To delete the folder through PyCharm, right click on it in the Project window and select Delete. That should automatically add it to the next git commit.
1

Please sign in to leave a comment.