When gitignore is not working for already committed files or folders.
In that time you need to run the below comment first:
git rm --cached file_name
Or
git rm --cached folder_name
Or
git rm --cached -r folder_name
It will clear committed stuff from git.
Then you can commit and push your branch.
No comments:
Post a Comment