Skip to content

Commit 234dc45

Browse files
committed
super squash
1 parent da5cdd5 commit 234dc45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/hub/storage-limits.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,21 @@ Key points to understand:
125125
- Future checkouts of branches/tags containing deleted LFS files with existing lfs pointers will fail (to avoid errors, add the following line to your `.gitconfig` file: `lfs.skipdownloaderrors=true`)
126126

127127

128-
To delete individual LFS files:
128+
### Deleting individual LFS files
129129

130130
1. Navigate to your repository's Settings page
131131
2. Click on "List LFS files"
132132
3. Use the actions menu to delete specific files
133133

134134

135+
### Super squash by API your repository
136+
137+
The super squash operation allows you to compress your entire Git history into a single commit, consider using super squash when you need to reclaim storage from old LFS versions you're not using. This operation is only available through the [Hub Python Library](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.super_squash_history).
138+
139+
⚠️ **Important**: This is a destructive operation that cannot be undone, commit history will be permanently lost and **LFS file history will be removed**
140+
141+
Changes from the squash operation is not immediate on yur quota and will be reflected in your storage quota within a few minutes
142+
135143
### Track LFS file references
136144

137145
To find which commits reference a specific LFS file, you can use the git log command:

0 commit comments

Comments
 (0)