Getting a working copy of a bare repository

前端 未结 7 701
渐次进展
渐次进展 2020-12-08 09:35

I have a server on which I have a bare repository for pushing. However, my server needs to have a working copy of the master branch.

How do I get a working copy and

相关标签:
7条回答
  • 2020-12-08 10:29

    This works for me:

    git --git-dir=path-to-bare-repo.git --work-tree=path-to-target checkout master .

    this command will extract all files from the repository to the directory specified by path-to-target

    0 讨论(0)
提交回复
热议问题