Various commands not recognized

Hi all, Hugo newbie here and honestly, new to CLI in general. I’ve been running into errors when trying different commands. It makes me think that I installed something incorrectly.

I just tried to run commit add -A. This literally worked yesterday. But now I get this error message.

commit: The term 'commit' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

I ran into the same error message when trying to use touch as well. Both commands are part of this GitHub Pages doc.

The command is git commit not commit. Are you a Windows user?

Yes, I’m a Windows user. Sorry, that’s user error on the git commit issue. Please disregard.

But touch doesn’t work for me. I still get the same error message.

On Windows, using PowerShell…

Instead of this:

touch filename.txt

Do this:

"" > filename.txt

Awesome, thanks for the help here

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.