Home > Software engineering >  Need help discarding all changes in VS Code
Need help discarding all changes in VS Code

Time:12-28

I haven't used VS Code on this one PC in a long time and last time I did, I messed up something with the git upload where it tried and failed to upload a ridiculous number of sub files to GitHub. I have uninstalled and reinstalled the application as well as disconnected and reconnected GitHub but yet all those commits still show up in the Source Control. I want to remove them all and start fresh. When I select Discard Changes for one or all the files I am getting this error:

fatal: You are on a branch yet to be born

What can I do to remove all of these from VS Code? It's for a new GitHub account too.

CodePudding user response:

I figured it out. I needed to delete the .vscode folder in C:\Users<USER>.vscode

  • Related