If there are changes: Commit according to auditable granularity, with clear commit messages, and only submit files that should be stored in the repository.
If files that should be ignored are found: Update
.gitignore
and include it in the commit.
Try to ensure the working directory is clean at the end.