Search code examples
gitblit

How to manually GC on a Gitblit server?


How to remove a commit on my Gitblit repo without using experimental GC (= garbage collection)? After force push, this delicate commit has no reference anymore but is still visible over GUI. Can I install Git on server (next to Gitblit) and run

git gc --prune=now
git reflog expire --expire=now --all

?

This delicate commit ID is not existent at file system, I guess because of packing.


Gitblit v1.7.1


Solution

  • Install the Powertools plugin then issue the GC command via SSH. See this asciicast for more info.