Fix [oh-my-zsh] Cant update: not a git repository

oh-my-zsh - Cant update- not a git repository
Last login: Wed Oct 26 11:12:41 on ttys001
[oh-my-zsh] Can't update: not a git repository.

If you are getting the above error, when you open Mac Terminal then somehow the location where you have installed Oh My ZSH is missing the .git directory and hence the error! when OMZ tries to look for updates from GitHub or some issues related to XCode installation.


Remove the files related to OMZ and do a fresh installation, remove the directory ~/.oh-my-zsh and reinstall.

% sh -c "$(curl -fsSL"

Found a thread on the ohmyzsh repo - might be helpful:


Facing issues? Have Questions? Post them here! I am happy to answer!

Author: Rakesh
Author Info:

Rakesh is a seasoned developer with over 10 years of experience in web and app development, and a deep knowledge of operating systems. Author of insightful How-To articles for Code2care.

Follow him on: X

Copyright © Code2care 2023 | Privacy Policy | About Us | Contact Us | Sitemap