how do I correct the error: pathspec message when committing in git? December 30, 2023 by Tarik It’s git commit -m "commit message". You’re missing the -m flag.