Dangerous
rm -rf .gitcross-platform · bash · Beginner
Deletes the repository metadata directory. The working files remain, but every commit, branch, and stash that had not been pushed is gone, because .git is where all of that is stored.
Signals to notice
- removes all local history including unpushed commits
- the working tree survives, which makes the loss easy to miss at first
Think you can spot these under time pressure?
Start Training