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

  • SEARCH
  • Home
  • 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 7158855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:08:07+00:00 2026-05-28T13:08:07+00:00

Does anyone know of a way to get numerous read-only git repositories based off

  • 0

Does anyone know of a way to get numerous “read-only” git repositories based off of hard-links? In otherwords, I want subsequent working dirs off of a ~500MB repo to only be hardlinks thus making it just a few KB.

Short of that, any any feedback on my below insanity is appreciated.


Okay, now background:

I’m working on building a QA tool where I want to be able to hit:

1f381de1.somesite.com
9e010d42.somesite.com
...etc

As these projects include dynamic (e.g. php) files hosted by, for example, apache, I can’t pipe all the output through something like git show, or I happily would (if anyone knows a possible way to do this, I’d love to hear it).

I don’t want to do a git clone or git-new-workdir for each version I want to hit as I’ll be copying all the live files in the repo. As I don’t want to constantly garbage-collect this project there may be a hundred versions or more “active” at one time and I don’t want to copy what may be a ~500MB project 100 times.

So ideally some tool exists that allows me to get several read-only checkouts based on hardlinks. If not, my current thinking is:

  • Checkout the repository
    • make an “uncompressed objects” folder
    • unpack the .pack file if necessary
  • I want a new version:
    • make directory
    • uncompress the commit log for the tree with git catfile -p
    • uncompress each object into the “uncompressed objects” folder (if it doesn’t already exist)
    • walk up tree as necessary, repeating the above step
    • create hardlinks in my new folder to each uncompressed object

The ultimate result is that I have an uncompressed version of all the files I use in .git/objects with every file in a new checkout being a hardlink pointing at some file in that directory.

  • 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-28T13:08:08+00:00Added an answer on May 28, 2026 at 1:08 pm

    Looking into this, I ran across FUSE which I’ve heard about but never really used or bothered to wrap my head around what it really was. It allows me to do what I thought was impossible — proxy git show commands to OS-level requests for files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know of a way to get only POST parameters from an HttpServletRequest
Does anyone know a way to get the mean amplitude of a .wav file
Does anyone know a way to get Firefox to crop the corners if the
Does anyone know of a way to get HSL from an linearRGB color (not
Does anyone know if there is way to get the sender and the eventarguments
Does anyone know if there's a way to get Eclipse to do a Save
Does anyone know a way to get the amount of space available on a
Does anyone know of a way to get the free disk space of a
Does anyone know a way to get notified when a specific thread is being
Does anyone know of a way to get ASP.NET Forms Authentication to not redirect

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.