VS Code Source Control

Need some help with VS Code. I had to resintall VS Code and when I go to Source Control the only option that shows up is 'Open Repository'. I no longer have 'Publish to Github' or 'Initialize' available. Suggestions?
6 Replies
Kevin Powell
Kevin Powell4mo ago
Sounds like that it already has a .git file in there
Andrew
AndrewOP4mo ago
So strange. I have tried to google it for solutions but to no avail lol
Kevin Powell
Kevin Powell4mo ago
It only offers those solutions if it hasn't already been initialized, and linked to a repo If you make a new, blank folder and open it with VS Code, do you have the initilize and publish options? Also, what happens when you click on the "open repository" button?
Andrew
AndrewOP4mo ago
"open repository" come up with my whold HD I tried the new blank folder with same results. I get the following message in the Source Control "A Git repository was found in the parent folder of the workspace or the open file(s)"
Kevin Powell
Kevin Powell4mo ago
Ah, so wherever you're saving those files has been set up to use git. Are you working from your desktop? I'd look around for a stray .git file somewhere.
Andrew
AndrewOP4mo ago
Will do that now Finally got it! There was a .git folder in the root directory for some reason and after deleting the entire folder I got VS Code Source control to work propertly. Thanks Kevin!
Want results from more Discord servers?
Add your server