I’ve a hosted GIT repository with limited disk space available but connected with a RedMine system.
I’m packaging some software and pushing and pulling on the repository, I’m run out of space. Now I need to clean (the packages are note needed anymore).
How can I delete these packages from the remote repository history, considering that I cannot re-create the repository (it’s too strictly linked to RedMine)?
I’ve a hosted GIT repository with limited disk space available but connected with a
Share
You can use
git rebase -ito “squash” some commits together, so that the intermediates won’t be in the repository anymore, and thengit push -fit onto the server. But rebasing causes problems if others use the same repository.Also, the original revisions and files associated with them will be actually deleted from the repository only after garbage collection is done (I think you can’t do that remotely, but it should happen automatically) and they are no longer referenced from the reflog (entries stay there 90 days on default).