We have created git bare in the shared mode and created the data repository by cloning the git bare.
As both git bare repo and git data repo lies on the same file system, it seems the object files are hardlinked to save space.
I wanted to backup the git bare repository now and delete the data repository.
I am afraid that deleting the data repository will leave the bare repository in the stale state due to the object files being hardlinked.
Is there a way where I can copy all the object files from the data repo that are hardlinked to the bare repo, so that I can delete the data repo and backup the repo?
Your help is much appreciated.