From 944e729813e610b09804780251f166e115dbd88c Mon Sep 17 00:00:00 2001 From: Trevor Gray Date: Sun, 12 Feb 2023 16:25:10 +0200 Subject: Add Miscellaneous section with how to find out size of a repo before cloning it --- tools/git.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/git.md b/tools/git.md index dd527fa..798e319 100644 --- a/tools/git.md +++ b/tools/git.md @@ -120,3 +120,8 @@ other's existence: $ git pull origin  --allow-unrelated-histories ``` - - - +#### Miscellaneous +Find out size of a repo before cloning it +```bash +$ curl -s https://api.github.com/repos/{orgname/username}/{repo_name} | jq '.size' | numfmt --to=iec --from-unit=1024 +``` -- cgit v1.2.3