Is my .git file safe? too many active changes problem

Viewed 153

I unziped a file containing approximately 7k files on my project folder by mistake.

While the files were being extracted, I noticed that Visual Studio Code showed this message:

The git repository at [...] has too many active changes, only a subset of Git features will be enabled.

When the extraction was completed, I moved the newly generated folder to a different location outside de repository.

Is my git repository somehow corrupted now? Or I can safely continue working as before as if nothing had happened?

Both Visual Studio Code and GitKraken show me the same unstaged files that I had before the faux pas, but I'm not sure if I have to do some checks before commiting (is a local repo).

2 Answers

If you didn't stage the unzipped files and simply did some file operations in the directory without actively using git (stage/add, commit), you should be fine.

You can confirm this if the status of you repo is normal after a commit: nothing to commit, working tree clean

When the extraction was completed, I moved the newly generated folder to a different location outside de repository.

Then simply close and relaunch VSCode.
As seen in microsoft/vscode issue 96577, that will force a status refresh, and the warning should be gone.

But the git repository itself has not been "corrupted" by this episode. This message comes only from VSCode Git integration itself.

Related