- [[git gc]], [[git and github]]
# Problem
```bash
# don't run git status after each command (by default, zsh runs git status after each command)
git config --global --add oh-my-zsh.hide-dirty 1
# garbage collect the repository
git gc
# open .zshrc, uncomment this line
DISABLE_UNTRACKED_FILES_DIRTY="true"
```
# Resources
- [oh-my-zsh slow, but only for certain Git repo - Stack Overflow](https://stackoverflow.com/questions/12765344/oh-my-zsh-slow-but-only-for-certain-git-repo)
- [Oh My Zsh hangs because of slow \`git status\` calls · Issue #9046 · ohmyzsh/ohmyzsh · GitHub](https://github.com/ohmyzsh/ohmyzsh/issues/9046)