I have an Android project that has a test module that will delete and recreate .apk files in a subdirectory in the git directory.
I added them to .gitignore (directory, files explicitly and * .apk), and then I did
git rm -r --cached src/main/Tests/bin
and git tells me:
rm 'src/main/Tests/bin/Tests-debug-unaligned.apk' rm 'src/main/Tests/bin/Tests-debug.apk' rm 'src/main/Tests/bin/Tests.ap_' rm 'src/main/Tests/bin/classes.dex'
i then
git commit . -m "removed apk files"
I run tests again that delete files and restore them. I run the git status and they appear as changed. It seems that .gitignore is not working. Here is my .gitignore file
*ipr *iml *iws .gitignore out/ *apk src/main/Tests/bin src/main/Tests/bin/* src/main/Tests/bin/Tests-debug-unaligned.apk
source share