why some gitignore not working code example
Example 1: gitignore is not working
git rm -rf --cached .
git add .
Example 2: why some gitignore not working
- Copy file to ignore in other location
- Push a commit with deleted file
- Copy back the deleted file