I’m sorry if this is covered elsewhere, but I can’t find the answer.
I have a bare repo, called bare.git which is the repository from which are cloned the dev repos. It all works well.
I want to know where bare.git gets the source files from. Are they stored as binary files inside the bare.git file structure? I can move bare.git to another location and still clone repos out of it, so the source must, in some way, be portable. Or is it storing absolute network references to the files?
There are three main reasons I want o know this information:
- We need to know what to backup.
- My boss wants to know where the source code has gone.
- We need a current composite version for testing.
Your source files are stored as a part of the index inside of bare.git file structure, which is same as you have in .git directory in any of your clones.
So, it’s best to backup full bare.git.
You may get current version for testing by cloning your bare repo.