1

Can't nail what's missing with Git integration in VSCode (latest 1.23.1) on Windows 10.

Got Git 2.17.0 installed.

Got it in the system-wide Path.

Got this in my User Settings

 {
    "git.enabled": true,
    "git.path": "C:\\Git\\bin\\git.exe"
 }

Git is well visible in the built-in VSCode terminal:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\myself> git --version
git version 2.17.0.windows.1

Still nothing among "active source control providers", and no Git icon available there.

What's wrong?

P.S. None of this

Git missing in VS Code – No source control providers

or that

Visual Studio Code cannot detect installed git

worked either.

Yuri G
  • 1,206
  • 1
  • 9
  • 13

1 Answers1

1

If there is no repository in the workspace then VSCode will display the message

There are no active source control providers

If you wish to clone a repository into your workspace you can use the command Git: Clone described in the VSCode doc page on source management's section on cloning a repository

Or to initialize a new repository you can use the similarly useful Git: Initialize repository command described in the initialize a repository section of the same document (incidentally, this section describes the message you are seeing). This however has a matching button in the top right of the built in source control tab.

If you didn't already know, the command palette can be reached by using the keyboard shortcut:

Shift/Cmd+P

or

F1

fanduin
  • 1,149
  • 10
  • 17
  • Thanks for detailed reply. It definitely works as you described, I was just puzzled by no visual evidence it is there, while some of the previous topics insisted there should be an icon indicating that. But whatever. It just works. – Yuri G May 25 '18 at 14:01