Make a .gitignore file in the assembly directory and put *.class in it. You can learn more about Git Ignore Files here .
If the .class files are already being monitored, you need to delete the files so that Git does not track them. git rm --cached '*.class' will cause the files to stop being tracked, but leave them on the local file system.
source share