I ran
git gc
to see how git garbage collector works in general.
But as soon as I ran it,my 15 objects that were shown in .git/objects as blobs, commits, and tree, they are gone.
1. How to undo it and restore those git objects?
2. When I'll run ls
, it shows me all the files but what is there status? Where are they at present? They are in the working directory, staging or modified area. And why can't I see them?