git prune

Removes unreachable objects

git prune removes unreachable objects (like commits, blobs, or trees) from the Git repository, helping to clean up and save space. These objects are no longer needed, as they are not accessible by any branch, tag, or reflog.

Sign in to enable bookmarking, reminders, progress-tracking and more...