我在github上有一个项目,我想在我的服务器上进行镜像。当做一个git克隆--mirror在哪里的实际文件?
我试过以下内容:git clone --mirror [email protected]:user/repo.git
。
然后在repo.git
目录中,我有以下文件结构(例如,输出ls
):
FETCH_HEAD branches/ description info/ packed-refs HEAD config hooks/ objects/ refs/
所以我的问题是:哪里是我的文件!?看起来好像有一堆git相关的东西,但我找不到我写的代码。我错过了明显的东西吗?
btw,git status
返回fatal: This operation must be run in a work tree
但git branch
返回分支。奇怪的。
我没有意识到裸回购没有工作区域。我可能没有足够的亲和力,不能正确理解这部分文档。谢谢。 – cpa 2013-03-07 18:52:40
是的,裸回购是非常接近于正常回购.git目录内的东西。 – MikeSep 2013-03-07 20:13:07