Closed Sparcks closed 5 years ago
Try running the documented git gc
command between runs. Also note that bfg is not necessarily the current recommended tool for lfs conversions.
Try running the documented
git gc
command between runs. Also note that bfg is not necessarily the current recommended tool for lfs conversions.
Hi @javabrett
I did run the recommended commandline: git gc --prune=now --aggressive
But this takes a REALLY long time for the repository. It's quite big already with the history and all.
So doing it after every command is too time consuming.
Or do you mean just running git gc
only, without the extra options?
Can you think of other tools that could help with conversions to lfs?
Thanks!
BFG can run into data/recursion issues if it is run multiple times without an interceding gc
. There are some unmerged PRs which allow certain types of multiple operations in one run.
Other than that, I am afraid you are stuck running the full gc
each time.
Git LFS has its own migrate command nowadays - you might have success with that.
BFG can run into data/recursion issues if it is run multiple times without an interceding
gc
. There are some unmerged PRs which allow certain types of multiple operations in one run.Other than that, I am afraid you are stuck running the full
gc
each time.Git LFS has its own migrate command nowadays - you might have success with that.
Okay, I'll have a look. Thanks.
Hi
I tried the BFG repo cleaner and first it looked good, but I did not see any .gitattribute anywhere. I used following command first:
java -jar bfg.jar --convert-to-git-lfs "*{_database,_generic,manifest,.md5}" --no-blob-protection myrepo.git
Here you can see I have files with no extension, because they are just created like this. But it seemed to work, untill I noticed there was no .gitattribute file. Don't think this should be the case, but maybe it is because of having files with no extension?
Anyway, afterwards I tried them separately (started from scratch of course), but that gave me an exception:
I used these 2 commands, but it happend on the second command:
java -jar bfg.jar --convert-to-git-lfs "*_database" --no-blob-protection myrepo.git
java -jar bfg.jar --convert-to-git-lfs "*_generic" --no-blob-protection myrepo.git
Full output:
I used the latest bfg.jar file (1.13.0) and I ran the commands in Git Bash on Windows 10. Does someone see if I'm doing something wrong here?
Thanks in advance.