git worktree 稀疏检出(sparseCheckout)

1.git worktree add -b xxxx_branch ./xxxx_branchorigin/xxxx_branch --no-checkout

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

3.cd xxxx_branch && git checkout

猜你喜欢

转载自www.cnblogs.com/zipon/p/11392767.html
今日推荐