srdusr
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+```