@denis
To remove files from a folder that is already listed in the .gitignore file, you need to remove the files from the repository and then commit the changes.
Here is how you can do it:
1
|
git rm --cached path/to/file |
Replace "path/to/file" with the path to the file you want to remove.
1
|
git commit -m "Removed files from repository" |
1
|
git push |
After following these steps, the files will be removed from the repository but will still exist in your local directory. Git will ignore these files from now on, as specified in the .gitignore file.