diff options
| author | Trevor Gray <[email protected]> | 2023-02-12 16:25:10 +0200 |
|---|---|---|
| committer | Trevor Gray <[email protected]> | 2023-02-12 16:25:10 +0200 |
| commit | 944e729813e610b09804780251f166e115dbd88c (patch) | |
| tree | 4c812145cfb8ac212f6c719536ee9830c5a0708f | |
| parent | 64b3b8f2a46af779c9b009d893ee5d0e0cf7bfb8 (diff) | |
| download | notes-944e729813e610b09804780251f166e115dbd88c.tar.gz notes-944e729813e610b09804780251f166e115dbd88c.zip | |
Add Miscellaneous section with how to find out size of a repo before cloning it
| -rw-r--r-- | tools/git.md | 5 |
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 +``` |