DEV Community

Discussion on: Please remove that .git folder

Collapse
 
christiankozalla profile image
Christian Kozalla

I suppose that you'd only expose your .git directory if there is no build step before deployment or if you'd put the .git directory into the public directory?

Collapse
 
christiankozalla profile image
Christian Kozalla

I have to admit: I cannot intentionally deploy my .git directory, even if I try! So could you please explain to me, how I would get into such a situation?

Collapse
 
po0q profile image
pO0q 🦄 • Edited

when deploying your website on the server with a basic git pull and the .git/ folder is publicly accessible. It happens a lot.

Thread Thread
 
christiankozalla profile image
Christian Kozalla

Ah, I see!

Some comments have been hidden by the post's author - find out more