We currently switched to Stash from a standard Git repository. Stash has been handling our repository for about a month now and we are starting to se alot of warnings of this kind:
"warning: There are too many unreachable loose objects; run 'git prune' to remove them."
when pushing. As far as I can understand we want to run "git prune" and/or "git gc" in the repository that Stash has. My first thought was that there must be some maintenance setting available in Stash already, but I can't seam to find anything like that.
So, how do we handle this and get rid of the warning?
Are you seeing that error prefixed with 'remote: '? That is to say, do the Stash repostitories require repacking, or is it your local version?
If it's the latter you might just want to try running 'git gc' locally to see if that fixes it. If not, you can use the Stash Git Ops plugin which allows you to run 'gc' on Stash repositories via the UI:
I hope this helps.
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events