Why .java file shows as .class file in src folder in github repository?


I am committing a Java project to a GitHub repository from IntelliJ IDEA. I pushed my project to the Git repo, but when I viewed the src folder, all .java files shows up as .class files. What should I do?

These are the files in the src folder:

files in folder

Also, I cannot view the code itself in Github when I view a specific file.

EDIT: Sorry I was looking another directory not src folder. Anyways thanks for answers)

here is the screenshot of it


you can ignore the .class files folder when using git to push your process

Answered By – Yasin

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published