When executing git clone --mirror, where are the actual files?

I have a project on github that I would like to reflect on my server.

I tried the following: git clone --mirror git@github.com:user/repo.git.

Then in the directory repo.gitI have the following file structure (e.g. output ls):

FETCH_HEAD branches/ description info/ packed-refs HEAD config hooks/ objects/ refs/

So my question is: where are my files !? It looks like there are a bunch of git related things there, but I just can't find the code I wrote. Am I missing something?

Btw, git statusreturns fatal: This operation must be run in a work tree, but git branchreturns branches. Weird

+5
source share
1 answer

git clone --mirror, , . --mirror, , .

, , , --mirror.

git clone:

--mirror
. --bare. --bare, --mirror , ref ( , ..) refspec, git .

, , , , . (git clone /path/to/local/mirror_repo.git), , - .

+7

All Articles