I have a repository with a file, Hello.java
. 我有一个带有文件Hello.java
的存储库。 When I compile it, an additional Hello.class
file is generated. 当我编译它时,会生成一个附加的Hello.class
文件。 java
I created an entry for Hello.class
in a .gitignore
file. 我在.gitignore
文件中为Hello.class
建立了一个条目。 However, the file still appears to be tracked. 可是,该文件彷佛仍被跟踪。 git
How can I make Git ignore Hello.class
? 如何使Git忽略Hello.class
? app