git clone 克隆下载深度层级仓库最新源码而不是整个仓库

前言全局说明


一、说明

1.1 环境:

Windows 7 旗舰版
git version 2.9.0.windows.1

二、命令原型

usage: git clone [<options>] [--] <repo> [<dir>]
	 --depth <depth>       create a shallow clone of that depth

三、使用示例

git clone https://github.com/umeiko/KlipperPhonesLinux.git --depth 1



免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。




参考、来源:
https://github.com/umeiko/KlipperPhonesLinux/blob/main/LinuxKernels/README_CN.md



posted @ 2025-10-12 19:32  悟透  阅读(14)  评论(0)    收藏  举报