# reformat all to prevent commit problem git add . pre-commit run --all-files # restore the files added so that one can actually add files to be commit git restore --staged .