I want to install carthage on my Mac OS using brew install carthage
command. However, I get the following error:
touch: /usr/local/Homebrew/.git
In my case this command working:
sudo chown -R $(whoami) $(brew --prefix)/*
However, there is also an easier way of installing Carthage instead of commands line way. It is enough to download the latest package from this link and install it in a wizard way on you Mac.
https://github.com/Carthage/Carthage/releases