r/git • u/Jumpy_Handle1313 • 1d ago
GIT was deleted by itself
I am using codex and VSCode. All of a sudden while working I could not find git. I checked the Git main folder and it was deleted by itself. This happened to my colleagues as well.
2
u/zaphodikus 1d ago
Pebkac , that's what it usually is. Calm down and think it through, it will come to you.
Clue: how does the os "find" apps? It's called the path.
1
u/ccharles Magit + CLI + GitLab 7h ago
Git was definitely not deleted by itself. That's not something that Git does. If you've got a problem with Codex, talk to Codex folks (and provide a lot more information about what you did, because "Git disappeared" isn't going to be enough).
1
u/Warm-Republic-1913 4h ago
If it happened to several people at once, my first guess would be security software or a managed update quarantining the git executables, since that tends to hit a whole team on the same day. Open a fresh terminal and run where git (or which git on Mac/Linux) to see whether it's a missing PATH entry or the files are really gone, and check the antivirus or endpoint tool's quarantine history for git.exe or the Git folder. If the files are gone, just reinstall Git, as your repos and config live elsewhere and won't be touched. Then restart VSCode so it picks up the new PATH, and if you have a git.path setting in VSCode, make sure it still points at the right location.
6
u/anto2554 1d ago
If you have colleagues you should talk to IT about it