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
Sounds like that it already has a
.git
file in thereSo strange. I have tried to google it for solutions but to no avail lol
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?
"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)"
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.
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!