Last active
August 29, 2015 14:11
-
-
Save marmot1123/a7ac81ee8108a6d5ccf2 to your computer and use it in GitHub Desktop.
When brew update error occur because of git, this shell script deal with the error and brew update automatically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd $(brew --prefix) | |
sudo git fetch origin | |
sudo git reset --hard origin/master | |
brew update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment