Skip to content

git-sparse-checkout

将工作树减少为跟踪文件的子集。

概要

bash
git sparse-checkout (init [--cone | --no-cone] [--[no-]sparse-index])
git sparse-checkout (set [--[no-]cone] [--[no-]sparse-index] <patterns>...)
git sparse-checkout (add [--[no-]sparse-index] <patterns>...)
git sparse-checkout (reapply [--[no-]cone] [--[no-]sparse-index])
git sparse-checkout (disable)
git sparse-checkout (list)

描述

此命令用于管理稀疏检出配置,该配置减少工作树中检出的文件数量。

命令

  • init:初始化稀疏检出。
  • set:设置稀疏检出模式。
  • add:添加稀疏检出模式。
  • reapply:重新应用稀疏检出。
  • disable:禁用稀疏检出。
  • list:列出稀疏检出模式。

Git

git 套件的一部分

基于 CC BY-NC-SA 3.0 许可发布