Last active
June 8, 2017 18:32
-
-
Save gretel/e242b9602a083e49970f to your computer and use it in GitHub Desktop.
homebrew on 'brew update' brawling "Your local changes to the following files would be overwritten by merge" at you? add a scoop of shell!
This file contains 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 --repository) | |
git reset --hard FETCH_HEAD | |
cd $(brew --repository)/Library | |
git clean -fd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment