The .git directory and security
Theoretically, if someone came into possession of one on my .git directories (but no source code at all), would they be able to recover any code?
One Solution collect form web for “The .git directory and security”
.git/objects folder is git database with all objects (blobs, commits, tags and trees). Whole history is available in .git folder.
For details you can take a look into documentation.