What it is
A repository's full history, branches and stashes.
Can you delete it?
No, not by hand. Deleting it loses every commit that was not pushed. Shrink it instead.
How to clean it safely
- Run:
git gc - Delete merged local branches.
Step-by-step guide: Developer caches on a Mac →
Related folders
- GitHub Desktop data ·
~/Library/Application Support/GitHub Desktop - Sourcetree data ·
~/Library/Application Support/SourceTree - Git LFS objects ·
<repo>/.git/lfs - Android app build folder ·
<project>/app/build - Terraform plugin cache ·
~/.terraform.d/plugin-cache - AWS CLI cache ·
~/.aws/cli/cache
Questions
Is it safe to delete <repo>/.git?
No, not by hand. Deleting it loses every commit that was not pushed. Shrink it instead.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac