What is the .git folder, and what happens if you lose it?
Quick Answer
The .git folder is the entire repository: all commit history, branches, tags, the object database, and config. If you delete it, the directory becomes an ordinary folder — you lose all local history and must re-initialize and re-fetch from a remote.
Detailed Answer
Everything Git knows lives in .git (objects/, refs/, HEAD, config). Losing it means git init, git remote add origin <url>, git fetch to recover whatever the remote has — but any local-only commits/branches not pushed are gone. This is exactly why pushing regularly and having a remote is your real backup.
Code Example
git init git remote add origin <url> git fetch
Interview Tip
The lesson interviewers want: unpushed local work is unrecoverable, so the remote (frequent pushes) is your backup.