If the commit is not referenced by anything, it will be removed with git’s garbage collection, in time.
If you want to force it before hand, use git gc --prune=now --aggressive
If the commit is not referenced by anything, it will be removed with git’s garbage collection, in time.
If you want to force it before hand, use git gc --prune=now --aggressive