稀疏检出配置:

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

相关文章:

  • 2022-01-12
  • 2021-08-11
  • 2021-12-27
  • 2021-05-21
猜你喜欢
  • 2022-03-07
  • 2021-06-14
  • 2021-08-16
  • 2022-01-11
  • 2021-12-17
  • 2021-08-13
相关资源
相似解决方案