Getting a working copy of a bare repository

前端 未结 7 722
渐次进展
渐次进展 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:04

    I was looking for the "detached working tree" approach (as seen here):

    git init --bare
    
    git config core.bare false
    git config core.worktree /somewhere/else/
    
    git checkout -f
    

提交回复
热议问题