diff options
| author | srdusr <[email protected]> | 2023-04-14 23:49:13 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-04-14 23:49:13 +0200 |
| commit | 7825656182b4837a4fe323c3bcfa2036426974fa (patch) | |
| tree | 751e4f931772249e4acb2ae0b1b3999d6cb1eeb3 /tools | |
| parent | 5d267efdf2bd6d7f60f22164ec074bc75bf8a23e (diff) | |
| download | notes-7825656182b4837a4fe323c3bcfa2036426974fa.tar.gz notes-7825656182b4837a4fe323c3bcfa2036426974fa.zip | |
Add trouble-shooting section
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/git.md | 10 |
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 +``` + +--- |