Alpes Maritimes
Alpes Maritimes

Reputation: 121

How to rewrite GIT history to track an entire directory with GIT-LFS

I tried a lot of commands but it does not work:

java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib/**' --no-blob-protection
java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib' --no-blob-protection
java -jar bfg-1.13.0.jar --convert-to-git-lfs 'lib/*' --no-blob-protection 
java -jar bfg-1.13.0.jar --convert-to-git-lfs '*/lib/*' --no-blob-protection

Is it supported by BFG repo cleaner? If so, what is the command?

Upvotes: 3

Views: 710

Answers (1)

riezebosch
riezebosch

Reputation: 2028

I managed to do this with git lfs migrate import --include 'lib/**'. It creates the correct .gitattributes with that so git will handle your future clone, pull, checkout and commits operations well.

Upvotes: 1

Related Questions