# Built Application Files
*.apk
*.ap_
# files for the Dex VM
*.dex
# Java class files
*.class
*/r.java
# Generated files
bin/
gen/
# Local configuration file (SDK path, etc)
Local.properties
Lint.xml
*~
Build.xml
# Eclipse Project Files
. settings/
. classpath
. metadata/
*.log
# mac
. Ds_store
._*
#lazarus
i386-linux/
# Compressed Files
*.tar.gz
# Generated Files
bin/
gen/
# Gradle Files
. gradle/
build/
# Proguard folder generated by Eclipse
proguard/
# idea
. idea/
#*.gitignore
If you just modify the Java file but git commits there will be some other files are also prompted to modify, such as
. idea/
.. /.gradle/
.. /.idea/libraries/
.. /build/
.. /proguard-rules.pro
That means the filter file is not yet in effect and requires the following methods to take effect:
Git rm-r--cached.
git Add.
Git commit-m "fixed untracked files"
Androidstudio. Gitinore Writing