What are the “loose objects” that the Git GUI refers to?

When I open the Git GUI, I get a popup message that refers to loose objects. I did git gc and that removed the message.

What are loose objects and how could I prevent this from occurring again?

  • Cannot push to git repository - permission denied
  • 'git' is not recognized as an internal or external command
  • Git: Deleted current branch and lost reflog
  • How to get an edit-distance between two commits?
  • bitbucket git push stuck
  • Recovering a git reset --soft
  • git add error : “fatal : malloc, out of memory”
  • Different `.gitignore` for different remote repositories?
  • Unable to combine Version2 to Version1 in Git
  • 'cannot open git-upload-pack' error in Eclipse when cloning or pushing git repository
  • Tab completion for aliased sub commands in zsh: alias gco='git checkout'
  • Git pushd & popd? I.e., checkout last state
  • 2 Solutions collect form web for “What are the “loose objects” that the Git GUI refers to?”

    An object (blobs, trees, and commits) with SHA say – 810cae53e0f622d6804f063c04a83dbc3a11b7ca will be stored at


    ( the split in first two characters to improve performance of the File system as now not all the objects are stored in the same directory)

    Objects stored as above are referred to as Loose objects.

    When you start up with your repo, you mostly have loose objects. As the number goes high, it becomes inefficient and they are stored in a pack file. Such objects are called packed objects.

     git gc

    is what you run to pack objects (Usually loose objects that are not needed and few weeks old are also removed and with --prune=<date> option you can force remove loose objects that are no longer needed. Like when you amend a commit. The old commit object is no longer needed. )

    The Git Book explains it pretty well:

    Loose objects are the simpler format.
    It is simply the compressed data
    stored in a single file on disk. Every
    object written to a seperate file.

    Git Baby is a git and github fan, let's start git clone.