git - Find unreachable loose objects in a repo -
we developing software, using libgit2, automatically storing data in git repository. doing frequently. keep performance software running git gc --auto
frequently. got message
error: last gc run reported following. please correct root cause , remove .git/gc.log. automatic cleanup not performed until file removed.
warning: there many unreachable loose objects; run 'git prune' remove them.
sure go repository , run git prune
, remote gc.log
or let software execute git gc --prune=all
instead.
but guess software creating git objects not needed. how can inspect how many , object in repository not reachable?
edit: git fsck
get:
$ git fsck --unreachable checking object directories: 100% (256/256), done. checking objects: 100% (7568/7568), done. checking connectivity: 13781, done.
from don't know, objects loose.
Comments
Post a Comment