3 回答
TA贡献1802条经验 获得超5个赞
什么“ 裸存储库 “is.它本质上是 .git目录,而不位于工作树中。 您可以指定正在使用的回购程序的位置( .git在命令行上使用 git期权 --git-dir=您可以指定工作副本的位置这一事实 --work-tree=什么是“镜子回购”。
git clone --mirror <remoteurl> <localgitdir> # Where localgitdir doesn't exist yet mkdir firstcopy mkdir secondcopy git --git-dir=<localgitdir> --work-tree=firstcopy checkout -f branch1 git --git-dir=<localgitdir> --work-tree=secondcopy checkout -f branch2
git --git-dir=<localgitdir> --work-tree=firstcopy status-fcheckout-f
- 3 回答
- 0 关注
- 853 浏览
添加回答
举报
