highexposed-git-directory

Exposed .git Directory

Your .git directory is publicly served, which means your entire source code and its full commit history can be reconstructed by anyone.

Why it matters

Your .git directory is publicly served, which means your entire source code and its full commit history can be reconstructed by anyone. History is the dangerous part: any credential that was ever committed and later removed is still recoverable from it, so secrets you believe are gone are not.

How ShipReady detects it

Disclosure at the ORIGIN: fixed paths that exist once per deployment. /admin, /debug, the .git metadata files, docker-compose, .DS_Store and the GraphQL endpoints are properties of the host, not of a document. Probing them per page would repeat the same ten requests for every page crawled to re-establish the same facts.

Detection is deterministic. ShipReady reports this only when it observes the condition directly, and prefers to miss a real problem over inventing one. Rule version 1.2.0.

How to fix it

This is the prompt ShipReady puts in your report — written to be pasted straight into Cursor, Claude Code, or whichever assistant built the app.

Your .git directory is publicly served, which exposes your full source code and commit history (including any secrets ever committed). Remove the .git directory from what your web server/host serves — deploy only build output, and block requests to /.git at the server or CDN.

Frequently asked questions

What does "Exposed .git Directory" mean?
Your .git directory is publicly served, which means your entire source code and its full commit history can be reconstructed by anyone.
How serious is it?
ShipReady rates this high. Fix before launch. A real weakness that an attacker can act on.
How do I fix it?
Paste the fix prompt on this page into Cursor, Claude Code or your AI editor. It is the same prompt ShipReady puts in your report.
Can I check my own site?
Yes — ShipReady scans up to ten pages of any public site for free and reports this alongside every other check.

Related checks

Does your site have this?

ShipReady checks this and 73 other things across up to ten pages of your site. Free, no signup.

Scan my site