我在 github 上有一个项目,我想在我的服务器上进行镜像。
我尝试了以下方法:git clone --mirror git@github.com:user/repo.git.
然后在repo.git目录中,我有以下文件结构(例如,输出ls):
FETCH_HEAD branches/ description info/ packed-refs HEAD config hooks/ objects/ refs/
所以我的问题是:我的文件在哪里!?看起来有一堆 git 相关的东西,但我就是找不到我写的代码。我错过了一些明显的东西吗?
顺便说一句,git status返回fatal: This operation must be run in a work tree但git branch返回分支。奇怪的。