tracking huge files with git lfs.key
TRANSCRIPT
![Page 1: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/1.jpg)
@kannonboyPhoto: Le Monde en Vidéo
@kannonboy
![Page 2: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/2.jpg)
@kannonboyPhoto: Le Monde en Vidéo
@kannonboy
![Page 3: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/3.jpg)
@kannonboyPhoto: Le Monde en Vidéo
@kannonboy
![Page 4: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/4.jpg)
@kannonboy@kannonboyPhoto: Le Monde en Vidéo
![Page 5: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/5.jpg)
@kannonboy
Git LFS!
Git LOB!
@kannonboyPhoto: Le Monde en Vidéo
![Page 6: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/6.jpg)
TIM PETTERSEN • SENIOR DEVELOPER • ATLASSIAN • @KANNONBOY
Tracking huge files with Git LFS
![Page 7: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/7.jpg)
@kannonboy
G I T L F S
T H E P R O B L E M W I T H B I G F I L E S
T I P S F O R T E A M S
Agenda
C O N V E R T I N G Y O U R R E P O
![Page 8: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/8.jpg)
@kannonboy
data model
![Page 9: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/9.jpg)
@kannonboy
master
feature/JIRA-123
![Page 10: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/10.jpg)
@kannonboy
434bb..tree
bab1e..parent
Tim P <kannonboy@…> 1455209277 -0800committer
Tim P <kannonboy@…> 1455209277 -0800author
My life is my commit message.
98ca9..
bab1e..
fad3d..git cat-file -p 98ca9$
![Page 11: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/11.jpg)
@kannonboy
git cat-file -p 434bb$
434bb..
98ca9..
bab1e..
fad3d..
ace23..100644 blob .gitignoredbdbd..100644 blob README.mda0bc3..040000 tree app33d33..040000 tree configb1de7..100755 blob deploy-prod.sh7011e..100755 blob deploy-staging.sh
typefilemode SHA-1
![Page 12: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/12.jpg)
@kannonboy
434bb..
98ca9..
bab1e..
fad3d..
ace23.. 1010101
dbdbd..
a0bc3..
33d33..
b1de7..
7011e..
1010101
1010101
1010101
master
1010101
1010101
1010101
![Page 13: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/13.jpg)
@kannonboy
98ca9..
bab1e..
fad3d..
![Page 14: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/14.jpg)
@kannonboy
98ca9..
bab1e..
fad3d..
![Page 15: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/15.jpg)
@kannonboy
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
50mb100mb150mb
![Page 16: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/16.jpg)
@kannonboy
![Page 17: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/17.jpg)
@kannonboy
(Large File Storage)
Git LFS
![Page 18: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/18.jpg)
@kannonboy
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
$
LFS store
Git host
![Page 19: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/19.jpg)
@kannonboy
☞
☞
☞
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
Git host
LFS store
$
![Page 20: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/20.jpg)
@kannonboy
☞
☞
☞
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
Git host
LFS store
git push$
![Page 21: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/21.jpg)
@kannonboy
☞
☞
☞
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
git pull$
LFS store
Git host
![Page 22: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/22.jpg)
@kannonboy
☞
☞
☞
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..☞
☞
☞
dabad..
98ca9..
bab1e..
fad3d..
86753..
434bb..
https://git-lfs.github.com/spec/v1version
sha256:325ddfb…oid
29342295size
git cat-file -p 4749d$
4749d..
bdd12..
778aa..
![Page 23: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/23.jpg)
@kannonboy
$ brew install git-lfs
$ git lfs install
![Page 24: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/24.jpg)
@kannonboy
$ cat ~/.gitconfig
[filter "lfs"] clean = git-lfs clean %f smudge = git-lfs smudge %f required = true
![Page 25: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/25.jpg)
@kannonboy
$ git lfs track “*.mp4”
$ cat .gitattributes
*.mp4 filter=lfs diff=lfs merge=lfs -text
![Page 26: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/26.jpg)
@kannonboy
massive_video.mp4
Work tree
dev
.git/lfs/objects
Clean filter(git-lfs clean)
☞
Index
massive_video.mp4
$
.git/objects
git add
![Page 27: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/27.jpg)
@kannonboy
$
dev
.git/lfs/objects
Smudge filter(git-lfs smudge)
Work tree
massive_video.mp4
☞
Commit tree
massive_video.mp4.git/objects
LFS Store
git checkout
![Page 28: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/28.jpg)
@kannonboy
.git/lfs/objects
.git/objectsHosted repo
LFS store
git push / pull
![Page 29: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/29.jpg)
@kannonboy
$ ls .git/hooks/
commit-msg.sample post-update.sample pre-commit.sample pre-push ...
![Page 30: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/30.jpg)
@kannonboy
$ git push
Git LFS: (12 of 13 files, 1 skipped) 168.75 MB / 180.87 MB, 12.12 skipped
Counting objects: 22, done. ...
![Page 31: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/31.jpg)
@kannonboy
$ git pull
remote: Counting objects: 3, done. ... Downloading massive_video.mp4 (38.79 MB) ... 1 file changed, 2 insertions(+)
![Page 32: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/32.jpg)
@kannonboy
$ git clone ssh://git@bitbucke..
Cloning into ‘big_repo’ ... Downloading massive_video.mp4 (38.79 MB) ... Checking out files: 100% (13/13), done.
![Page 33: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/33.jpg)
@kannonboy
Auth
SSH / HTTP
HTTP ONLY
Git server with embedded LFS
Store
![Page 34: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/34.jpg)
@kannonboy
Auth
SSH / HTTP
HTTP ONLY
Git server
Separate LFS store (e.g. S3)
![Page 35: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/35.jpg)
@kannonboy
LFS aware Git server LFS storeDev
git clone https://..
repo pack files
smudge filter
cafebabe is over there
I need object cafebabe
GET …/cafebabe
object cafebabe…
![Page 36: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/36.jpg)
@kannonboy
POST .../repo.git
I need object cafebabe
@kannonboy
/info/lfs/objects/batch{“objects”:[
{“oid”: “cafebabe...”,“size”: 40689401}, ...
],“operation”: “download”}
![Page 37: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/37.jpg)
@kannonboy
200 OK
{“objects”:[ {“oid”: “cafebabe…”, “size”: 40689401, “actions”: {
“download”: { “href”: “https://…/lfs/cafebabe…”,
@kannonboy
cafebabe is over there
“header”: {“Authorization”: “JWT eyJ0eXA…”,
} } }
...
![Page 38: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/38.jpg)
@kannonboy
LFS aware Git server LFS storeDev
git push
please upload it over there
I want to upload cafebabe
POST …/cafebabe
I uploaded cafebabe
![Page 39: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/39.jpg)
@kannonboy
200 OK
{“objects”:[ ... “actions”: {
“upload”: { “href”: “https://…/lfs/cafebabe…”,
… }
@kannonboy
, “verify”: {“href”: “https://…/lfs/callback”,…
}}
...
go upload it over there
I uploaded cafebabe
![Page 40: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/40.jpg)
@kannonboy
LFS aware Git server LFS storeDev
git push ssh://…
please upload it over there
I want to upload cafebabe
POST …/cafebabe
I uploaded cafebabe
![Page 41: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/41.jpg)
@kannonboy
LFS aware Git server LFS storeDev
git push ssh://…
please upload it over there
I want to upload cafebabe
POST …/cafebabe
I uploaded cafebabe
where is the LFS API?
the LFS API is over there
![Page 42: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/42.jpg)
@kannonboy
$ ssh git@bitbucket git-lfs-authenticate \ project/repo.git download
{“href”: “https://…/lfs/objects/batch”,“header”: {“Authorization”: “JWT eyJ0eXA...”
}}
where is the LFS API?
the LFS API is over there
@kannonboy
![Page 43: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/43.jpg)
@kannonboy
$ ssh git@bitbucket git-lfs-authenticate \ project/repo.git download
{“href”: “https://…/lfs/objects/batch”,“header”: {“Authorization”: “JWT eyJ0eXA...”
}}
where is the LFS API?
the LFS API is over there
@kannonboy
![Page 44: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/44.jpg)
@kannonboy
LFS aware Git server LFS storeDev
git clone https://..
repo data
POST /info/lfs/objects/batch
LFS objects hypermedia
GET …/<objectSHA>
smudge filter
happens once per
file checked out
![Page 45: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/45.jpg)
@kannonboy
LFS storeDev
git lfs clone https://..
repo data
GET …/<objectSHA>
batched
smudge filter
subtle difference!
POST /info/lfs/objects/batch
LFS objects hypermedia
LFS aware Git server
![Page 46: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/46.jpg)
@kannonboy
Converting to Git LFS
☞
![Page 47: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/47.jpg)
@kannonboy
434bb..
fad3d..
98ca9..
41222..
dabad.. 100mb150mb
ace34..☞ 150mb!?!?
![Page 48: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/48.jpg)
@kannonboy
git filter-branch
$ git filter-branch --force --index-filter \ 'git rm --cached --ignore-unmatch big_video.mp4’ \ --prune-empty --tag-name-filter cat -- --all
DON’T DO
THIS!
![Page 49: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/49.jpg)
@kannonboy
$ git filter—branch --prune-empty --tree-filter ' git config -f .gitconfig lfs.url “https://bitbucket.example.com/team/repo.git” git lfs track "*.mp4" git add .gitattributes .gitconfig
for file in $(git ls-files | xargs git check-attr filter | grep "filter: lfs" | sed -r "s/(.*): filter: lfs/\1/"); do git rm -f --cached ${file} git add ${file} done' --tag-name-filter cat -- --all
@kannonboy
DON’T DO
THIS
EITHER!
![Page 50: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/50.jpg)
@kannonboy
BFG Repo-Cleaner
@kannonboy
by @rtyley
![Page 51: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/51.jpg)
@kannonboy
BFG Repo-Cleaner
@kannonboy
10-720x faster than filter-branch
built to kill history
Git LFS support
by @rtyley
![Page 52: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/52.jpg)
@kannonboy
$ git filter—branch --prune-empty --tree-filter ' git config -f .gitconfig lfs.url “https://bitbucket.example.com/team/repo.git” git lfs track "*.mp4" git add .gitattributes .gitconfig
for file in $(git ls-files | xargs git check-attr filter | grep "filter: lfs" | sed -r "s/(.*): filter: lfs/\1/"); do git rm -f --cached ${file} git add ${file} done' --tag-name-filter cat -- --all
@kannonboy
DON’T DO
THIS
EITHER!
![Page 53: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/53.jpg)
@kannonboy
$ brew install bfg
$ bfg —-convert-to-git-lfs ‘*.{zip,mp4}’ --no-blob-protection
![Page 54: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/54.jpg)
@kannonboy
Repofactoring
@kannonboy
![Page 55: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/55.jpg)
@kannonboy
Identifying large objects
github.com/bloomberg/repofactor
by @hashpling
![Page 56: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/56.jpg)
@kannonboy
$
a295ef4… 102437 953722cc7063… 152171 140443
blob SHA size on disk average blob size
generate-larger-than 50000
Identifying large objects
![Page 57: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/57.jpg)
@kannonboy
a295ef4… 102437 95372 2cc7063… 152171 140443
, PNG, 1148 x 482, PNG, 1101 x 800
$ generate-larger-than 50000 \| add-file-info
Identifying large objects
![Page 58: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/58.jpg)
@kannonboy
$ generate-larger-than 50000 \ | add-file-info
2cc7063… 152171 140443, PNG, 1101 x 800 a295ef4… 102437 95372, PNG, 1148 x 482
order by average blob size
\| sort -k3nr
Identifying large objects
![Page 59: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/59.jpg)
@kannonboy
$ generate-larger-than 50000 \ | add-file-info \ | sort -k3nr
$ report-on-large-objects big-stuff.txt
> big-stuff.txt
Identifying large objects
![Page 60: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/60.jpg)
@kannonboy
$ generate-larger-than 50000 \ | add-file-info \ | sort -k3nr
$ report-on-large-objects big-stuff.txt
logo-hdpi.png 2cc7063… 152171 140443, PNG…logo-mdpi.png a295ef4… 102437 95372, PNG…
paths
> big-stuff.txt
Identifying large objects
![Page 61: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/61.jpg)
@kannonboy
$ bfg —-convert-to-git-lfs ‘logo-*.png’ --no-blob-protection
Identifying large objects
![Page 62: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/62.jpg)
@kannonboy
Tips for teams
![Page 63: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/63.jpg)
@kannonboyBeware merge conflicts @kannonboy
![Page 64: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/64.jpg)
@kannonboy
…meanwhile in
![Page 65: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/65.jpg)
@kannonboy
…meanwhile in
![Page 66: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/66.jpg)
@kannonboyTeamwork @kannonboyTeamwork
![Page 67: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/67.jpg)
@kannonboy
$ git lfs fetch
$ git config lfs.fetchrecentalways “true”
master
feature0
feature1
--recent
T-minus 7 days
![Page 68: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/68.jpg)
@kannonboy
$ git config lfs.fetchrecentalways “true”
lfs.fetchrecentrefsdays
lfs.fetchrecentremoterefs
lfs.fetchrecentcommitsdays
(default = 7)
(default = 0)
$ git lfs fetch --recent
![Page 69: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/69.jpg)
@kannonboy
$ git lfs prune
lfs.pruneoffsetdays
lfs.pruneverifyremotealways
(default = 3)
![Page 70: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/70.jpg)
@kannonboyFetch the bare necessitiesFetch the bare necessities @kannonboy© Disney
![Page 71: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/71.jpg)
@kannonboy
# for a build that just runs the unit tests $ git lfs fetch --exclude Assets/**
# for an audio engineer $ git lfs fetch --include Assets/Audio/**
$ git config lfs.fetchexclude Assets/**
$ git config lfs.fetchinclude Assets/Audio/**
![Page 72: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/72.jpg)
@kannonboyIDEs & GUI tools @kannonboy
![Page 73: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/73.jpg)
@kannonboy
![Page 74: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/74.jpg)
@kannonboy
1. Install EGit Team Provider version 4.2+ 2. Make sure git-lfs is on your path
![Page 75: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/75.jpg)
@kannonboy
![Page 76: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/76.jpg)
@kannonboy
![Page 77: Tracking huge files with Git LFS.key](https://reader033.vdocuments.net/reader033/viewer/2022051302/5870b86c1a28ab676e8bdbf7/html5/thumbnails/77.jpg)
@kannonboy
coming soon!Bitbucket Cloud
git-lfs.github.comdocs
github.com/github/git-lfssource
atlassian.com/bitbucketBitbucket Server
Lookingfor
more?
Follow me for occasional Git,Bitbucket & JIRA trivia