Getting a working copy of a bare repository

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

    You can use 'git show' for this.

    http://www.kernel.org/pub/software/scm/git/docs/git-show.html

    Basically:

    git --no-pager --git-dir /path/to/bar/repo.git show branch:path/to/file.txt
    

提交回复
热议问题