You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SCM: Viewlet should improve "no repositories" messaging #61491
I think this might just be a confusing message. I used the console to clone a repository and when I opened the folder in VS Code the source control pane worked as I expected it to. Once I closed the folder the same message reappeared. Coming from a Visual Studio & TFS world I was expecting a different experience.
IMHO the message should clarify that Git is installed and functioning, you just need to used the console to clone a repository and open it...at least that's how I think it should work. Time to watch a few videos!
Reacted by João Moreno, David Ginzberg, Roland Part, Joost de Folter, ET, jamesrhea-turnto, Joaquim, Michael Richardson, Ry Jones, Cameron Blackwood and 1 more
Just got moved to a new machine at work, and this issue popped up. I agree with someone who said that the message should say "Git is installed/working (whatever), but you're not in a git enabled repository. Would you like to create a new one or open a folder that has one?" well, that's the gist of it, anyway. And then those two options should be available for the user to act on...
Hi, I solve this problem by changing the order of environment variables paths. Specifically, I move my desired searching scope of git upper and the problem just went away once I did so.
Fresh install of VSCode and Git on a brand new Windows 10 machine and despite git working in Terminal, PowerShell and WSL, AND the GitLab flow extension working, Source Control still reports "No source control providers registered". I've also tried after removing GitLab Flow and restarting just in case.
GitLens extension is working as expected as well.
I have no disabled extensions. Authentication is working fine (I can use any of my terminals to successfully fetch). SmartGit works as expected when fired up (the point is to not have to though).
As I'm now seeing "fatal: not a git repository (or any of the parent directories)", I wonder if it has nothing to do with Git or our projects, just the context the commands are run in.
Using git 2.24.0.windows.2 from C:\Program Files\Git\cmd\git.exe
> git rev-parse --show-toplevel
fatal: not a git repository (or any of the parent directories): .git
Bowden Kelly (@bowdenk7) - I think you should just copy/paste what you wrote as a new request, because it's about much more than messaging. And this is a fantastic proposal!
Activity
stevehurcombe commentedon Oct 22, 2018
Screenshot.

vscodebot commentedon Oct 22, 2018
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
joaomoreno commentedon Oct 22, 2018
Did you open a git repository at all?
stevehurcombe commentedon Oct 22, 2018
From within VS Code? No, there is no option to do that.
stevehurcombe commentedon Oct 23, 2018
I think this might just be a confusing message. I used the console to clone a repository and when I opened the folder in VS Code the source control pane worked as I expected it to. Once I closed the folder the same message reappeared. Coming from a Visual Studio & TFS world I was expecting a different experience.
IMHO the message should clarify that Git is installed and functioning, you just need to used the console to clone a repository and open it...at least that's how I think it should work. Time to watch a few videos!
joaomoreno commentedon Oct 23, 2018
Yup, I totally agree. You're not the first one to think that.
I'll rename this issue accordingly.
22 remaining items
rhires commentedon Nov 11, 2019
Just got moved to a new machine at work, and this issue popped up. I agree with someone who said that the message should say "Git is installed/working (whatever), but you're not in a git enabled repository. Would you like to create a new one or open a folder that has one?" well, that's the gist of it, anyway. And then those two options should be available for the user to act on...
SnoopyGeeek commentedon Nov 26, 2019
Hi, I solve this problem by changing the order of environment variables paths. Specifically, I move my desired searching scope of git upper and the problem just went away once I did so.
rainabba commentedon Nov 26, 2019
Fresh install of VSCode and Git on a brand new Windows 10 machine and despite git working in Terminal, PowerShell and WSL, AND the GitLab flow extension working, Source Control still reports "No source control providers registered". I've also tried after removing GitLab Flow and restarting just in case.
GitLens extension is working as expected as well.
I have no disabled extensions. Authentication is working fine (I can use any of my terminals to successfully fetch). SmartGit works as expected when fired up (the point is to not have to though).
Version: 1.40.2 (system setup)
Commit: f359dd6
Date: 2019-11-25T14:54:45.096Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18362
Git: 2.17.1 (WSL), 2.24.0.windows.2 (Windows)
rainabba commentedon Nov 26, 2019
As I'm now seeing "fatal: not a git repository (or any of the parent directories)", I wonder if it has nothing to do with Git or our projects, just the context the commands are run in.
bowdenk7 commentedon Jan 16, 2020
Right now unless you are in a folder with an active source control provider, you get the following:

I think we should be able to provide a little more direction. A user can be in a few different states when they're looking at this message:
Proposal
First we detect whether there is a working git installation:
If we don't detect git installation - show instructions on how/where to install git and a note about how to use other scm providers

Links:
@category:"scm providers"if we do detect a git installation - we assume you want to use git
Clone from GitHubwould trigger the existingGit: Clonecommand.gitfolder - provide the option togit initfor the userrhires commentedon Jan 17, 2020
Bowden Kelly (@bowdenk7) - I think you should just copy/paste what you wrote as a new request, because it's about much more than messaging. And this is a fantastic proposal!
joaomoreno commentedon Feb 17, 2020
Bowden Kelly (@bowdenk7) Since #89080 has landed, I have adopted it in Git. We now cover the following cases:
Git extension is disabled
No git installation found
No open folder
No
.gitin current folderNo
.gitin current workspaceMadhaviGunapati610 commentedon Feb 18, 2020
Thank you. It is working perfect.