I recently installed and setup git on my computer (windows 8.1) to learn basic use with it in vs code with python. However, when I enter the command $git –version in the terminal window to check the git version (which was according to the tutorial I’ve been learning from), I get the following error:
At line:1 char:8
- $git –version
-
~~~~~~~
Unexpected token ‘version’ in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Anyone know how to solve this problem or what I’m doing wrong?
I’ve tried entering git –version in the terminal instead (without the $), and it says the following:
git: The term ‘git’ is not recognized as the name of a cmdlet, function, script file or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- git –version
-
+ CategoryInfo : ObjectNotFound: (git:string) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
I’ve also tried entering $git version (without the –) and it produced the same result as the first error. I was expecting it display the git version in the terminal window, and I’ve looked online but have found no answers, so any help would be greatly appreciated.
jacob malu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.