Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active Jun 8, 2017
Embed
What would you like to do?
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