cs-intro-reichman / hw02-zmiro429

hw02-zmiro429 created by GitHub Classroom
0 stars 0 forks source link

Feedback #1

Open GermanDavid opened 8 months ago

GermanDavid commented 8 months ago

Hi Adam,

I noticed that you've added all the .class files to your repository. Generally, it's redundant to include .class files in a version control system like Git. These files are the compiled bytecode of your Java source code (.java files) and are generated every time you compile your program.

To avoid uploading .class files in the future, you can use a .gitignore file. This file tells Git which files or folders to ignore in a project. Here’s how you can set it up:

  1. In the root directory of your project, create a file named .gitignore (if it doesn’t already exist).
  2. Open this file in a text editor and add the following line:
    *.class

    This line tells Git to ignore all files in the repository that end with the .class extension.

  3. Save the .gitignore file and commit it to your repository. From this point on, Git will ignore any .class files and they won't be included in your commits.

Remember, if there are already .class files tracked in your repository, you’ll need to remove them. You can do this by running git rm --cached *.class and then committing the changes. This command removes the .class files from Git tracking but keeps them in your local directory.

Great job on your project, and keep up the good work!

David.

abhishek-jainm commented 8 months ago

Thanks for the sharing.