Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:06:04+00:00 2026-05-30T03:06:04+00:00

I did a git-unpack-objects on a .pack file. What I got was a lot

  • 0

I did a git-unpack-objects on a .pack file. What I got was a lot of subdirectories from 00 to ff , each containing a lot of tiles with names as SHA1 hashes , but trying to display their contents gets me some junk. Now I need to get the actual source files from those hash files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:06:05+00:00Added an answer on May 30, 2026 at 3:06 am

    If you place the .pack files inside the .git/objects/pack/ directory of a newly git init‘d repository, you should be able to git checkout -b somebranch ANYSHA1.

    For example:

    # find a commit:
    faux@reg:~/git% git rev-parse HEAD
    6f5e880c68099b185e60b2492c75e506e16d8292
    faux@reg:~/git% cd ..
    
    # init:
    faux@reg:~% git init bar
    Initialized empty Git repository in /home/faux/bar/.git/
    
    # add packs:
    faux@reg:~% cp git/.git/objects/pack/* bar/.git/objects/pack
    faux@reg:~% cd bar
    
    # checkout:
    faux@reg:~/bar% git checkout -b somebranch 6f5e880c68099b185e60b2492c75e506e16d8292
    Switched to a new branch 'somebranch'
    
    # done!
    faux@reg:~/bar% ls
    abspath.c
    contrib
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a lot of local changes. I just accidentally did git merge another_branch
I did: git checkout sign-up And got this: M Gemfile Switched to branch 'sign-up'
I have a bare git-svn repository and did a 'git svn fetch' on it.
I'm a Git user trying to use Mercurial. Here's what happened: I did a
I want v0.1.27 of nodejs code base. This is what I did. git clone
I did git pull origin newbranch:newbranch ... but for some reason.. this tried merging
I just did git pull origin branch accidentally and now I have all these
To update my multiple repos, I did: git bulk fetch origin git bulk pull
I did : git add remote git@github.com:username/name_of_github_repo.git git push -u github master It returns
I did: git add -A so that all my updates would be ready for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.