You can put source files in the repo but not things generated from the source. Also, you should not commit class files. You should commit your build scripts, but not files generated by the build. Oct 15, 2021