git worktree 稀疏检出(sparseCheckout)

2022-11-17,,

稀疏检出配置:

git config core.sparsecheckout true
echo another_folder/xxxx/ >> .git/info/sparse-checkout

worktree稀疏配置:

1.git worktree add -b xxxx_branch ./xxxx_branchorigin/xxxx_branch --no-checkout ,先使用--no-checkout,然后加配置,然后checkout

2.要在./git/worktrees/xxxx_branch/info下创建sparse-checkout文件

3.cd xxxx_branch && git checkout

git worktree 稀疏检出(sparseCheckout)的相关教程结束。

《git worktree 稀疏检出(sparseCheckout).doc》

下载本文的Word格式文档,以方便收藏与打印。