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
-f
checkout
-f
- 3 回答
- 0 關注
- 792 瀏覽
添加回答
舉報