srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTrevor Gray <[email protected]>2023-02-12 16:25:10 +0200
committerTrevor Gray <[email protected]>2023-02-12 16:25:10 +0200
commit944e729813e610b09804780251f166e115dbd88c (patch)
tree4c812145cfb8ac212f6c719536ee9830c5a0708f /tools
parent64b3b8f2a46af779c9b009d893ee5d0e0cf7bfb8 (diff)
downloadnotes-944e729813e610b09804780251f166e115dbd88c.tar.gz
notes-944e729813e610b09804780251f166e115dbd88c.zip
Add Miscellaneous section with how to find out size of a repo before cloning it
Diffstat (limited to 'tools')
-rw-r--r--tools/git.md5
1 files changed, 5 insertions, 0 deletions
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 <branch> --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
+```