search

Home  >  Q&A  >  body text

Git ignores files, why are .java files not ignored? How to view .gitignore files?

# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/

# Local configuration file (sdk path, etc)
local.properties

# Eclipse project files
proguard-project.txt

# Proguard folder generated by Eclipse
proguard/

# Intellij project files
*.iml
*.ipr
*.iws
.idea/
仅有的幸福仅有的幸福2794 days ago564

reply all(3)I'll reply

  • 阿神

    阿神2017-05-02 09:28:49

    You only ignored the *.class file compiled by java, not *.java

    reply
    0
  • 阿神

    阿神2017-05-02 09:28:49

    You can take a look at Liao Xuefeng’s GIT blog’s explanation on file ignoring.
    Special files ignored

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:28:49

    vim .gitignore 查看.gitignore文件
    如果你要忽略.java文件,需要加上 *.java

    reply
    0
  • Cancelreply