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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -