Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active June 8, 2017 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gretel/e242b9602a083e49970f to your computer and use it in GitHub Desktop.
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!
#!/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