I have an Android project in which I want GIT to ignore the bin and gen folders. Therefore, I placed the following .gitignore file in the project directory (I also tried it at a higher level):
*.apk
*.ap_
*.dex
*.class
bin/
gen/
local.properties
Unfortunately, this file is ignored by Eclipse, and I continue to write files and .class files from gen / and bin /. I also tried marking the folders as “Suppose it hasn't changed,” but that also doesn't help.
I'm not sure, but it is possible that I added the file AFTER the first commit.
source
share