I have two git clone (say A and B ) from a commun huge origin. They are both on the same disk/partition. I want them to share by hardlink their commun objects.
I could create a new local copy "git clone A C" and add B as a remote fetch everything then erase B and rename C to B, but I know there is a better way. What is the command to recreate hardlink between existing git repos?