如何忽略Git中的某些文件 - How to ignore certain files in Git

问题:

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


解决方案:

参考一: https://stackoom.com/question/I4ri/如何忽略Git中的某些文件
参考二: https://oldbug.net/q/I4ri/How-to-ignore-certain-files-in-Git
相关文章
相关标签/搜索