Card: git histories stored under _git/
Browse files
README.md
CHANGED
|
@@ -20,4 +20,11 @@ This is a private archive of the smaller OCR projects from `~/ocr` on the OCR se
|
|
| 20 |
|
| 21 |
Also left out: `paddlex-official-models/` (official PaddleX downloads: PaddleOCR-VL-1.6, PP-DocLayoutV3, PP-OCRv5/v6 det, UVDoc, devanagari_PP-OCRv5_mobile_rec, PP-LCNet orientation models) and `bin/` (the `uv` tool).
|
| 22 |
|
| 23 |
-
Folders with many small files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
Also left out: `paddlex-official-models/` (official PaddleX downloads: PaddleOCR-VL-1.6, PP-DocLayoutV3, PP-OCRv5/v6 det, UVDoc, devanagari_PP-OCRv5_mobile_rec, PP-LCNet orientation models) and `bin/` (the `uv` tool).
|
| 22 |
|
| 23 |
+
Folders with many small files are packed into tar shards, each with a sha256 index (`*.index.json`).
|
| 24 |
+
|
| 25 |
+
**Git histories.** Hugging Face does not allow paths under a `.git/` folder, so each project's `.git` is stored as `<project>/_git/shard-*.tar`. To restore one:
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
mkdir -p ocr-tech/.git && for t in ocr-tech/_git/shard-*.tar; do tar -xf "$t" -C ocr-tech/.git; done
|
| 29 |
+
cd ocr-tech && git status # working tree files are already in the repo
|
| 30 |
+
```
|