srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/git.md
diff options
context:
space:
mode:
Diffstat (limited to 'tools/git.md')
-rw-r--r--tools/git.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/git.md b/tools/git.md
index 12258f9..2e962d2 100644
--- a/tools/git.md
+++ b/tools/git.md
@@ -8,6 +8,7 @@
```bash
$ alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
```
+
3. Make sure to ignore the folder we're going use to clone.
```bash
@@ -127,4 +128,13 @@ $ git pull origin <branch> --allow-unrelated-histories
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
+
```
+---
+#### Trouble-shooting
+fatal: ambiguous argument 'origin': unknown revision or path not in the working tree
+```bash
+$ git fetch origin main:refs/remotes/origin/main
+```
+
+---