Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    You can just zlib decompress it with zpipe -d < <object> from within .git/objects
    – Andrew C
    Commented Mar 10, 2016 at 4:30
  • @AndrewC Yes, if it’s already a loose object, but what if it lives in a pack?
    – Greg Bacon
    Commented Mar 10, 2016 at 5:06
  • Greg I thought the premise of your question was that you had unpacked the objects and had a loose object. I don't know the answer to doing it from a pack file except to unpack it first.
    – Andrew C
    Commented Mar 10, 2016 at 5:12