From bfc47e1deef9f0e0c12cb0c7f50005757d27bcbb Mon Sep 17 00:00:00 2001 From: Ramazan Polat Date: Fri, 28 Jan 2022 00:13:48 +0300 Subject: [PATCH] Add commands download clickhouse-diagnostics folder --- utils/clickhouse-diagnostics/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/utils/clickhouse-diagnostics/README.md b/utils/clickhouse-diagnostics/README.md index 991efefdf5a..a6f8ed298dd 100644 --- a/utils/clickhouse-diagnostics/README.md +++ b/utils/clickhouse-diagnostics/README.md @@ -1,3 +1,18 @@ +## Download + +Cloning whole repo will take a lot of time and disk space. The following commands will download only this directory. + +* Requires Git 2.19 + +``` +# mkdir chdiag +# cd chdiag +# git clone --depth 1 --filter=blob:none --no-checkout https://github.com/ClickHouse/ClickHouse +# cd ClickHouse +# git sparse-checkout set utils/clickhouse-diagnostics +# git checkout master -- utils/clickhouse-diagnostics +``` + ## Installation ```