Skip to content

Git LFS on Bitbucket

Lars Vilhuber edited this page Apr 2, 2021 · 3 revisions

Git LFS is enabled, but limited to 5GB overall.

Setting up general exclusion

Create a file .lfsconfig that includes:

[lfs]
   fetchexclude = *

Adding LFS files

git lfs track "*.dta"

Cloning repo without LFS files

As usual, if the above is included.

Cloning repo and getting the LFS files

git lfs pull --include="*" --exclude=""

Removing LFS files

The following website has JS to delete them when logged in to the Bitbucket interface.

Notes

https://github.com/git-lfs/git-lfs/wiki/Implementations

Clone this wiki locally