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