2022-08-18 00:25:38 +00:00
|
|
|
---
|
2022-11-12 18:14:33 +00:00
|
|
|
title: "git-lfs"
|
2022-08-18 00:25:38 +00:00
|
|
|
tags: [ "Documentation", "data" ]
|
|
|
|
---
|
|
|
|
|
|
|
|
Install, and add with
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
git lfs install
|
|
|
|
```
|
2022-08-18 00:25:38 +00:00
|
|
|
|
|
|
|
Then track some filetype with:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
git lfs track "\*.ttf"
|
|
|
|
```
|
2022-08-18 00:25:38 +00:00
|
|
|
|
|
|
|
Or a directory with:
|
|
|
|
|
2023-06-17 19:28:20 +00:00
|
|
|
```bash
|
|
|
|
git lfs track "images/"
|
|
|
|
```
|
2022-08-18 00:25:38 +00:00
|
|
|
|
|
|
|
All changes require adding `.gitattributes`.
|