$ git init not working on Visual Studio Code

Hi all,

I’m having a problem with the following…

" : The term '’ 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 init
  • ~
    • CategoryInfo : ObjectNotFound: ($:String) , CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException"

I’m working my way through the “Starting a code base on GitHub” video, but I keep encountering this problem.

I’ve Googled for answers but can’t resolve the issue.

Please can someone help me out?

Many thanks,


The $ is a typical symbol used for the command prompt, you don’t need to type it out. I think it’s important to note though that you’re currently using powershell and a lot of the instructions tend to be geared towards a bash shell. Things won’t necessarily behave the same in this case.

You can use it just be careful that you make sure the command exists and performs the same task in powershell. You may need to take a little more time to work of out how to use it (alternatively looked into windows shell emulators such as git bash).