I have a bare git repository that, according to git fsck --full
, has about 300 dangling commits and tags. About 90% of it are dangling tags.
I'm not sure where these issues come from, but since the repository seems to work fine, they might have been there for a while already.
I would like to fix them, but so far nothing I tried made the issues go away. So far I have tried these commands:
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git repack -a -d
How can I fix these dangling commits and tags? Are they a problem at all? It is important that I don't lose the history and tags and I'm a bit concerned about the many dangling tags.
Best regards