I have created a repository in a folder with my project, you know, git init
, I have the Webstorm folder .idea
and another one not related to this, I am not interested in keeping in the repository, and I don't want this folder to appear even as new files to add.
I want to forget about these subfolders.
- How can I exclude this subfolder before committing the whole repository?
- How can I exclude this subfolder after committing the whole repository?