Open martic opened 1 year ago
I'm not clear on what you mean. Can you provide more details?
I'm running in Poweshell on windows. I think when it generates the commit and sends it to execSync that maybe windows needs it in double quotes.
execSync("git commit -m '".concat(answer.message.replace(/'/, "\'"), "'"), { stdio: 'inherit' });
git commit -m 'Update password reset duration to 60 minutes'
It looks as if pathSpec is interpreting each word of the commit as separate parameters hence pathspec errors. error: pathspec 'password' did not match any file(s) known to git error: pathspec 'reset' did not match any file(s) known to git error: pathspec 'duration' did not match any file(s) known to git
I have the same issue.
OS: Windows 11. Terminals: Visual studio integrated terminal, windows terminal, bash with both PowerShell v17.4.2 and Ubuntu 20.04 LTS
Does the Commit message need to include the filenames included in the commit?
I have ran commitgpt a few times for this commit and none of the suggestions include the filename. But it looks as if the filename is required in the commit message.