0

While learning Git, I used the command git init for my entire student coding folder instead of just the practice GIT/ folder.
But I didn't add, commit, or push them to the GitHub repository.

I made some other mistakes in the GIT/ folder and I decided to delete the Git repositories I created on GitHub to "start from scratch".

In doing so, I also deleted all of code from my folders on VSCode.

I restored the repositories on GitHub, however this did not bring my other files back to VSCode.

The attached picture shows what I currently see in the VSCODE.
Any suggestions? I'd really appreciate it.

VSCode screenshot

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Tarneka Ezell
  • 95
  • 1
  • 1
  • 4

1 Answers1

0

Make sure to install at least the Local History VSCode extension, as suggested here.

That way, even if you do a destructive operation, you can still see old file "local history" (as recorded by VSCode, not Git), and restore your content.

If not, since you are talking about iCloud, double-check your Time Machine status, in case you could restore them from a backup.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250