Skip to content

Commit

Permalink
[FAQ] Document how to unshallow installation folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Jul 27, 2024
1 parent cb4ccf1 commit 0baf118
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _If you don't find what you're looking for, and you think it should be covered b
- [Installation](#installation)
- [I can't access the installer / connection timed out](#i-cant-access-the-installer--connection-timed-out)
- [My .zshrc file was deleted on install](#my-zshrc-file-was-deleted-on-install)
- [I can't check out a specific commit in the Oh My Zsh folder](#i-cant-check-out-a-specific-commit-in-the-oh-my-zsh-folder)
- [Font issues](#font-issues)
- [I have a weird character in my prompt](#i-have-a-weird-character-in-my-prompt)
- [Completion issues](#completion-issues)
Expand Down Expand Up @@ -307,6 +308,17 @@ If you find that your `.zshrc` file was deleted, you can search for the backup f
ls -l ~/.zshrc*
```

#### I can't check out a specific commit in the Oh My Zsh folder

This happens because Oh My Zsh installs itself as a shallow git repository, with parameter `--depth=1`, which only pulls the latest commit. This is done to reduce the amount of data downloaded, as the repository is quite large, and also to speed up the installation process. Most users don't need the full history of the repository, so this is a good trade-off.

If you need to check out a specific commit, you can convert the repository to a full one by running the following commands:

```zsh
cd $ZSH
git fetch --unshallow
```

### Font issues

#### I have a weird character in my prompt
Expand Down

0 comments on commit 0baf118

Please sign in to comment.